Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4438

Keystore password in security realm keystore definition does not support expression

    XMLWordPrintable

Details

    Description

      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();

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              btison Bernard Tison
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: