]
Darran Lofthouse updated AS7-4438:
----------------------------------
Fix Version/s: 7.1.2.Final-redhat1
Keystore password in security realm keystore definition does not
support expression
-----------------------------------------------------------------------------------
Key: AS7-4438
URL:
https://issues.jboss.org/browse/AS7-4438
Project: Application Server 7
Issue Type: Bug
Components: Domain Management, Security
Reporter: Bernard Tison
Assignee: Darran Lofthouse
Fix For: 7.1.2.Final-redhat1
The keystore password in the security realm keystore definition does not support
expressions. As a result the password cannot be masked.
This in contrast to the key password, which does support expressions.
Relevant code fragment from org.jboss.as.domain.management.security.KeystoreAttributes
:
public static final SimpleAttributeDefinition KEY_PASSWORD = new
SimpleAttributeDefinitionBuilder(
ModelDescriptionConstants.KEY_PASSWORD, ModelType.STRING,
true).setXmlName(ModelDescriptionConstants.KEY_PASSWORD)
.setValidator(new StringLengthValidator(1, Integer.MAX_VALUE, true,
true)).setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES).build();
public static final SimpleAttributeDefinition KEYSTORE_PASSWORD = new
SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.KEYSTORE_PASSWORD,
ModelType.STRING, false)
.setXmlName(ModelDescriptionConstants.KEYSTORE_PASSWORD).setValidator(new
StringLengthValidator(1, Integer.MAX_VALUE, false, false))
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES).build();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: