Interface DomainManagementLogger

    • Field Detail

      • SECURITY_LOGGER

        static final DomainManagementLogger SECURITY_LOGGER
        A logger with category specifically for logging per request security related messages.
    • Method Detail

      • userAndPasswordWarning

        @LogMessage(level=WARN)
        @Message(id=1,
                 value="Properties file defined with default user and password, this will be easy to guess.")
        void userAndPasswordWarning()
        Logs a warning message indicating the user and password were found in the properties file.
      • unableToLoadProperties

        @Message(id=17,
                 value="Unable to load properties")
        org.jboss.msc.service.StartException unableToLoadProperties​(@Cause
                                                                    Throwable cause)
        Creates an exception indicating the properties could not be loaded.
        Parameters:
        cause - the cause of the error.
        Returns:
        a StartException for the error.
      • userNotFoundInDirectory

        @Message(id=20,
                 value="User \'%s\' not found in directory.")
        NamingException userNotFoundInDirectory​(String username)
        Creates an exception indicating the user, represented by the username parameter, was not found in the directory.
        Parameters:
        username - the username not found.
        Returns:
        an IOException for the error.
      • noConsoleAvailable

        @Message(id=21,
                 value="No java.io.Console available to interact with user.")
        IllegalStateException noConsoleAvailable()
        Creates an exception indicating that no java.io.Console is available.
        Returns:
        a IllegalStateException for the error.
      • propertiesFileNotFound

        @Message(id=23,
                 value="No %s files found.")
        String propertiesFileNotFound​(String file)
        A message indicating no mgmt-users.properties have been found.
        Returns:
        a String for the message.
      • enterNewUserDetails

        @Message(id=0,
                 value="Enter the details of the new user to add.")
        String enterNewUserDetails()
        A message prompting the user to enter the details of the user being added.
        Returns:
        a String for the message.
      • realmPrompt

        @Message(id=0,
                 value="Realm (%s)")
        String realmPrompt​(String realm)
        The prompt to obtain the realm from the user.
        Parameters:
        realm - - the default realm.
        Returns:
        a String for the message.
      • usernamePrompt

        @Message(id=0,
                 value="Username")
        String usernamePrompt()
        The prompt to obtain the new username from the user.
        Returns:
        a String for the message.
      • usernamePrompt

        @Message(id=0,
                 value="Username (%s)")
        String usernamePrompt​(String defaultUsername)
        The prompt to obtain the new username from the user.
        Parameters:
        defaultUsername - - The default username if no value is entered.
        Returns:
        a String for the message.
      • noUsernameExiting

        @Message(id=24,
                 value="No Username entered, exiting.")
        String noUsernameExiting()
        The error message if no username is entered.
        Returns:
        a String for the message.
      • passwordPrompt

        @Message(id=0,
                 value="Password")
        String passwordPrompt()
        The prompt to obtain the password from the user.
        Returns:
        a String for the message.
      • noPasswordExiting

        @Message(id=25,
                 value="No Password entered, exiting.")
        String noPasswordExiting()
        The error message if no password is entered.
        Returns:
        a String for the message.
      • passwordConfirmationPrompt

        @Message(id=0,
                 value="Re-enter Password")
        String passwordConfirmationPrompt()
        The prompt to obtain the password confirmation from the user.
        Returns:
        a String for the message.
      • passwordMisMatch

        @Message(id=26,
                 value="The passwords do not match.")
        String passwordMisMatch()
        The error message if the passwords do not match.
        Returns:
        a String for the message.
      • usernameNotAlphaNumeric

        @Message(id=28,
                 value="Username must be alphanumeric with the exception of the following accepted symbols (%s)")
        String usernameNotAlphaNumeric​(String symbols)
        The error message if the username is not alpha numeric
        Returns:
        a String for the message.
      • aboutToAddUser

        @Message(id=0,
                 value="About to add user \'%s\' for realm \'%s\'")
        String aboutToAddUser​(String username,
                              String realm)
        Confirmation of the user being added.
        Parameters:
        username - - The new username.
        realm - - The realm the user is being added for.
        Returns:
        a String for the message.
      • isCorrectPrompt

        @Message(id=0,
                 value="Is this correct")
        String isCorrectPrompt()
        Prompt to ask user to confirm the previous statement is correct. Do not include the translation specific yes/no
        Returns:
        a String for the message.
      • usernameEasyToGuess

        @Message(id=0,
                 value="The username \'%s\' is easy to guess")
        String usernameEasyToGuess​(String username)
        Warning that the username is easy to guess.
        Parameters:
        username - - The new username.
        Returns:
        a String for the message.
      • sureToAddUser

        @Message(id=0,
                 value="Are you sure you want to add user \'%s\' yes/no?")
        String sureToAddUser​(String username)
        A prompt to double check the user is really sure they want to add this user.
        Parameters:
        username - - The new username.
        Returns:
        a String for the message.
      • invalidConfirmationResponse

        @Message(id=29,
                 value="Invalid response. (Valid responses are %s and %s)")
        String invalidConfirmationResponse​(String firstValues,
                                           String secondValues)
        The error message if the confirmation response is invalid.
        Returns:
        a String for the message.
      • addedUser

        @Message(id=0,
                 value="Added user \'%s\' to file \'%s\'")
        String addedUser​(String username,
                         String fileName)
        Message to inform user that the new user has been added to the file identified.
        Parameters:
        username - - The new username.
        fileName - - The file the user has been added to.
        Returns:
        a String for the message.
      • unableToAddUser

        @Message(id=30,
                 value="Unable to add user to %s due to error %s")
        String unableToAddUser​(String file,
                               String error)
        The error message if adding the user to the file fails.
        Parameters:
        file - - The name of the file the add failed for.
        error - - The failure message.
        Returns:
        a String for the message.
      • unableToLoadUsers

        @Message(id=31,
                 value="Unable to add load users from %s due to error %s")
        String unableToLoadUsers​(String file,
                                 String error)
        The error message if loading the known users from file fails.
        Parameters:
        file - - The name of the file the load failed for.
        error - - The failure message.
        Returns:
        a String for the message.
      • errorHeader

        @Message(id=0,
                 value="Error")
        String errorHeader()
        The error message header.
        Returns:
        a String for the message.
      • yesNo

        @Message(id=0,
                 value="yes/no?")
        String yesNo()
        Simple yes/no prompt.
        Returns:
        a String for the message.
      • multipleAuthenticationMechanismsDefined

        @Message(id=33,
                 value="Configuration for security realm \'%s\' includes multiple username/password based authentication mechanisms (%s). Only one is allowed")
        OperationFailedException multipleAuthenticationMechanismsDefined​(String realmName,
                                                                         Set<String> mechanisms)
        Error message if more than one username/password authentication mechanism is defined.
        Parameters:
        realmName - the name of the security realm
        mechanisms - the set of mechanisms .
        Returns:
        an OperationFailedException for the error.
      • operationFailedOneOfRequired

        @Message(id=34,
                 value="One of \'%s\' or \'%s\' required.")
        OperationFailedException operationFailedOneOfRequired​(String attr1,
                                                              String attr2)
        Creates an exception indicating that one of attr1 or attr2 is required.
        Parameters:
        attr1 - the first attribute.
        attr2 - the second attribute.
        Returns:
        an OperationFailedException for the error.
      • operationFailedOnlyOneOfRequired

        @Message(id=35,
                 value="Only one of \'%s\' or \'%s\' is required.")
        OperationFailedException operationFailedOnlyOneOfRequired​(String attr1,
                                                                  String attr2)
        Creates an exception indicating that only one of attr1 or attr2 is required.
        Parameters:
        attr1 - the first attribute.
        attr2 - the second attribute.
        Returns:
        an OperationFailedException for the error.
      • noSecurityContextEstablished

        @Message(id=37,
                 value="No security context has been established.")
        String noSecurityContextEstablished()
        Creates a String for use in an OperationFailedException to indicate that no security context has been established for a call that requires one.
      • filePrompt

        @Message(id=0,
                 value="What type of user do you wish to add? %n a) Management User (mgmt-users.properties) %n b) Application User (application-users.properties)")
        String filePrompt()
        Prompt for the file to update in add-users
      • groupsPrompt

        @Message(id=0,
                 value="What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)")
        String groupsPrompt()
        Prompt the user for the groups to add the user to
        Returns:
        the prompt
      • addedGroups

        @Message(id=0,
                 value="Added user \'%s\' with groups %s to file \'%s\'")
        String addedGroups​(String username,
                           String groups,
                           String fileName)
        Message to inform user that the new user has been added to the groups file identified.
        Parameters:
        username - - The new username.
        groups - - The new groups.
        fileName - - The file the user has been added to.
        Returns:
        a String for the message.
      • invalidChoiceResponse

        @Message(id=39,
                 value="Invalid response. (Valid responses are A, a, B, or b)")
        String invalidChoiceResponse()
        The error message if the choice response is invalid. TODO - On translation we will need support for checking the possible responses.
        Returns:
        a String for the message.
      • aboutToUpdateEnabledUser

        @Message(id=0,
                 value="User \'%s\' already exists and is enabled, would you like to... %n a) Update the existing user password and roles %n b) Disable the existing user %n c) Type a new username")
        String aboutToUpdateEnabledUser​(String user)
        Confirmation if the current user (enabled) is about to be updated.
        Parameters:
        user - - The name of the user.
        Returns:
        a String for the message.
      • aboutToUpdateDisabledUser

        @Message(id=0,
                 value="User \'%s\' already exists and is disabled, would you like to... %n a) Update the existing user password and roles %n b) Enable the existing user %n c) Type a new username")
        String aboutToUpdateDisabledUser​(String user)
        Confirmation if the current user (disabled) is about to be updated.
        Parameters:
        user - - The name of the user.
        Returns:
        a String for the message.
      • updateUser

        @Message(id=0,
                 value="Updated user \'%s\' to file \'%s\'")
        String updateUser​(String userName,
                          String canonicalPath)
        Message to inform user that the user has been updated to the file identified.
        Parameters:
        userName - - The new username.
        canonicalPath - - The file the user has been added to.
        Returns:
        a String for the message.
      • unableToUpdateUser

        @Message(id=40,
                 value="Unable to update user to %s due to error %s")
        String unableToUpdateUser​(String absolutePath,
                                  String message)
        The error message if updating user to the file fails.
        Parameters:
        absolutePath - - The name of the file the add failed for.
        message - - The failure message.
        Returns:
        a String for the message.
      • updatedGroups

        @Message(id=0,
                 value="Updated user \'%s\' with groups %s to file \'%s\'")
        String updatedGroups​(String username,
                             String groups,
                             String fileName)
        Message to inform user that the user has been updated to the groups file identified.
        Parameters:
        username - - The new username.
        groups - - The new groups.
        fileName - - The file the user has been added to.
        Returns:
        a String for the message.
      • invalidLocalUser

        @Message(id=41,
                 value="The user \'%s\' is not allowed in a local authentication.")
        IOException invalidLocalUser​(String userName)
        IOException to indicate the user attempting to use local authentication has been rejected.
        Parameters:
        userName - - The user attempting local authentication.
        Returns:
        an IOException for the failure.
      • multipleCallbackHandlerForMechanism

        @Message(id=42,
                 value="Multiple CallbackHandlerServices for the same mechanism (%s)")
        org.jboss.msc.service.StartException multipleCallbackHandlerForMechanism​(String mechanismName)
        StartException to indicate that multiple CallbackHandlerServices are associated for the same mechanism.
        Parameters:
        mechanismName - - the name of the mechanism being registered.
        Returns:
        an StartException for the failure.
      • noCallbackHandlerForMechanism

        @Message(id=43,
                 value="No CallbackHandler available for mechanism %s in realm %s")
        IllegalStateException noCallbackHandlerForMechanism​(String mechanism,
                                                            String realmName)
        IllegalStateException to indicate a CallbackHandler has been requested for an unsupported mechanism.
        Parameters:
        mechanism - - The name of the mechanism requested.
        realmName - - The name of the realm the mechanism was requested from.
        Returns:
        an IllegalStateException for the failure.
      • noPlugInProvidersLoaded

        @Message(id=44,
                 value="No plug in providers found for module name %s")
        IllegalArgumentException noPlugInProvidersLoaded​(String name)
        IllegalStateException to indicate no plug in providers were loaded for the specified name.
        Parameters:
        name - The name of the module loaded.
        Returns:
        an IllegalStateException for the failure.
      • unableToLoadPlugInProviders

        @Message(id=45,
                 value="Unable to load plug-in for module %s due to error (%s)")
        IllegalArgumentException unableToLoadPlugInProviders​(String name,
                                                             String error)
        IllegalStateException to indicate a failure loading the PlugIn.
        Parameters:
        name - - The name of the plug-in being loaded.
        error - - The error that occurred.
        Returns:
        an IllegalArgumentException for the failure.
      • noAuthenticationPlugInFound

        @Message(id=46,
                 value="No authentication plug-in found for name %s")
        IllegalArgumentException noAuthenticationPlugInFound​(String name)
        IllegalArgumentException to indicate that an AuthenticationPlugIn was not loaded.
        Parameters:
        name - - The name specified.
        Returns:
        an IllegalArgumentException for the failure.
      • unableToInitialisePlugIn

        @Message(id=47,
                 value="Unable to initialise plug-in %s due to error %s")
        IllegalStateException unableToInitialisePlugIn​(String name,
                                                       String message)
        IllegalStateException to indicate that a plug-in could not be initialised.
        Parameters:
        name - - The name specified.
        Returns:
        an IllegalArgumentException for the failure.
      • passwordNotStrongEnough

        @Message(id=48,
                 value="Password is not strong enough, it is \'%s\'. It should be at least \'%s\'.")
        String passwordNotStrongEnough​(String currentStrength,
                                       String desiredStrength)
        The error message for password which does not met strength requirement.
        Parameters:
        currentStrength - - strength value which has been computed from password.
        desiredStrength - - Minimum strength value which should be met.
        Returns:
        a String for the message.
      • passwordMustNotBeEqual

        @Message(id=49,
                 value="Password must not be equal to \'%s\', this value is restricted.")
        PasswordValidationException passwordMustNotBeEqual​(String password)
        The error message for password which has forbidden value.
        Parameters:
        password - - password value.
        Returns:
        a PasswordValidationException for the message.
      • passwordMustHaveDigit

        @Message(id=50,
                 value="Password must have at least %d digit.")
        String passwordMustHaveDigit​(int minDigit)
        The error message for password which has not enough digit.
        Parameters:
        minDigit - - minimum digit values.
        Returns:
        a String for the message.
      • passwordMustHaveSymbol

        @Message(id=51,
                 value="Password must have at least %s non-alphanumeric symbol.")
        String passwordMustHaveSymbol​(int minSymbol)
        The error message for password which has not enough symbol.
        Parameters:
        minSymbol - - minimum symbol values.
        Returns:
        a String for the message.
      • passwordMustHaveAlpha

        @Message(id=52,
                 value="Password must have at least %d alphanumeric character.")
        String passwordMustHaveAlpha​(int minAlpha)
        The error message for password which has not enough alpha numerical values.
        Parameters:
        minAlpha - - minimum alpha numerical values.
        Returns:
        a String for the message.
      • passwordNotLongEnough

        @Message(id=53,
                 value="Password must have at least %s characters!")
        PasswordValidationException passwordNotLongEnough​(int desiredLength)
        The error message for password which is not long enough.
        Parameters:
        desiredLength - - desired length of password.
        Returns:
        a PasswordValidationException for the message.
      • unableToLoadKeyTrustFile

        @Message(id=54,
                 value="Unable to load key trust file.")
        IllegalStateException unableToLoadKeyTrustFile​(@Cause
                                                       Throwable t)
      • unableToCreateDelegateTrustManager

        @Message(id=56,
                 value="Unable to create delegate trust manager.")
        IllegalStateException unableToCreateDelegateTrustManager()
      • onlyOneSyslogHandlerProtocol

        @Message(id=57,
                 value="The syslog-handler can only contain one protocol %s")
        XMLStreamException onlyOneSyslogHandlerProtocol​(Location location)
      • sysLogProtocolAlreadyConfigured

        @Message(id=59,
                 value="There is already a protocol configured for the syslog handler at %s")
        OperationFailedException sysLogProtocolAlreadyConfigured​(PathAddress append)
      • noFormatterCalled

        @Message(id=61,
                 value="There is no formatter called \'%s\'")
        OperationFailedException noFormatterCalled​(String formatterName)
      • cannotRemoveReferencedFormatter

        @Message(id=62,
                 value="Can not remove formatter, it is still referenced by the handler \'%s\'")
        OperationFailedException cannotRemoveReferencedFormatter​(PathElement pathElement)
      • handlerAlreadyExists

        @Message(id=63,
                 value="Handler names must be unique. There is already a handler called \'%s\' at %s")
        OperationFailedException handlerAlreadyExists​(String name,
                                                      PathAddress append)
      • multipleRealmsDetected

        @Message(id=64,
                 value="Different realm names detected \'%s\', \'%s\' reading user property files, all realms must be equal.")
        String multipleRealmsDetected​(String realmOne,
                                      String realmTwo)
        Parsing the user property file different realm names have been detected, the add-user utility requires the same realm name to be used across all property files a user is being added to.
      • userRealmNotMatchDiscovered

        @Message(id=65,
                 value="The user supplied realm name \'%s\' does not match the realm name discovered from the property file(s) \'%s\'.")
        String userRealmNotMatchDiscovered​(String supplied,
                                           String discovered)
        The user has supplied a realm name but the supplied name does not match the name discovered from the property files.
      • groupPropertiesButNoUserProperties

        @Message(id=66,
                 value="A group properties file \'%s\' has been specified, however no user properties has been specified.")
        String groupPropertiesButNoUserProperties​(String groupProperties)
        The user has supplied a group properties file name but no user properties file name.
      • realmMustBeSpecified

        @Message(id=67,
                 value="A realm name must be specified.")
        String realmMustBeSpecified()
        There is no default realm name and the user has not specified one either.
      • inconsistentRbacConfiguration

        @Message(id=68,
                 value="The current operation(s) would result in role based access control being enabled but leave it impossible for authenticated users to be assigned roles.")
        OperationFailedException inconsistentRbacConfiguration()
        Creates an exception indicating that RBAC has been enabled but it is not possible for users to be mapped to roles.
        Returns:
        an OperationFailedException for the error.
      • inconsistentRbacRuntimeState

        @Message(id=69,
                 value="The runtime role mapping configuration is inconsistent, the server must be restarted.")
        OperationFailedException inconsistentRbacRuntimeState()
        Creates an exception indicating that the runtime role mapping state is inconsistent.
        Returns:
        an OperationFailedException for the error.
      • invalidChoiceUpdateUserResponse

        @Message(id=70,
                 value="Invalid response. (Valid responses are A, a, B, b, C or c)")
        String invalidChoiceUpdateUserResponse()
        The error message if the choice response is invalid to the update user state.
        Returns:
        a String for the message.
      • multipleAuthorizationConfigurationsDefined

        @Message(id=72,
                 value="Configuration for security realm \'%s\' includes multiple authorization configurations (%s). Only one is allowed")
        OperationFailedException multipleAuthorizationConfigurationsDefined​(String realmName,
                                                                            Set<String> configurations)
        Error message if more than one authorization configuration is defined.
        Parameters:
        realmName - the name of the security realm
        configurations - the set of configurations .
        Returns:
        an OperationFailedException for the error.
      • multipleUsernameToDnConfigurationsDefined

        @Message(id=73,
                 value="Configuration for security realm \'%s\' includes multiple username-to-dn resources within the authorization=ldap resource (%s). Only one is allowed")
        OperationFailedException multipleUsernameToDnConfigurationsDefined​(String realmName,
                                                                           Set<String> configurations)
        Error message if more than one username-to-dn resource is defined.
        Parameters:
        realmName - the name of the security realm
        configurations - the set of configurations .
        Returns:
        an OperationFailedException for the error.
      • noGroupSearchDefined

        @Message(id=74,
                 value="Configuration for security realm \'%s\' does not contain any group-search resource within the authorization=ldap resource.")
        OperationFailedException noGroupSearchDefined​(String realmName)
        Error message if no group-search resource is defined.
        Parameters:
        realmName - the name of the security realm
        Returns:
        an OperationFailedException for the error.
      • multipleGroupSearchConfigurationsDefined

        @Message(id=75,
                 value="Configuration for security realm \'%s\' includes multiple group-search resources within the authorization=ldap resource (%s). Only one is allowed")
        OperationFailedException multipleGroupSearchConfigurationsDefined​(String realmName,
                                                                          Set<String> configurations)
        Error message if more than one group-search resource is defined.
        Parameters:
        realmName - the name of the security realm
        configurations - the set of configurations .
        Returns:
        an OperationFailedException for the error.
      • invalidRoleName

        @Message(id=76,
                 value="The role name \'%s\' is not a valid standard role.")
        OperationFailedException invalidRoleName​(String roleName)
        Error message if the name of a role mapping being added is invalid.
        Parameters:
        roleName - - The name of the role.
        Returns:
        an OperationFailedException for the error.
      • invalidRoleNameDomain

        @Message(id=77,
                 value="The role name \'%s\' is not a valid standard role and is not a host scoped role or a server group scoped role.")
        OperationFailedException invalidRoleNameDomain​(String roleName)
        Error message if the name of a role mapping being added is invalid.
        Parameters:
        roleName - - The name of the role.
        Returns:
        an OperationFailedException for the error.
      • roleMappingRemaining

        @Message(id=78,
                 value="The scoped role \'%s\' can not be removed as a role mapping still exists.")
        OperationFailedException roleMappingRemaining​(String roleName)
        Error message if the name of a scoped role can not be removed as the role mapping remains.
        Parameters:
        roleName - - The name of the role.
        Returns:
        an OperationFailedException for the error.
      • duplicateScopedRole

        @Message(id=79,
                 value="A %s already exists with name \'%s\'")
        OperationFailedException duplicateScopedRole​(String scopeType,
                                                     String roleName)
        Error message if a scoped role already exists with the same name.
        Parameters:
        scopeType - - The type of scoped role.
        roleName - - The name of the role.
        Returns:
        an OperationFailedException for the error.
      • scopedRoleStandardName

        @Message(id=80,
                 value="The name \'%s\' conflicts with the standard role name of \'%s\' - comparison is case insensitive.")
        OperationFailedException scopedRoleStandardName​(String scopedRole,
                                                        String standardRole)
        Error message if a scoped role name matches a standard role.
        Parameters:
        scopedRole - - The name of the scoped role.
        standardRole - - The name of the standard role.
        Returns:
        an OperationFailedException for the error.
      • badBaseRole

        @Message(id=81,
                 value="The base-role \'%s\' is not one of the standard roles for the current authorization provider.")
        OperationFailedException badBaseRole​(String baseRole)
        Error message if the base-role is not one of the standard roles.
        Parameters:
        baseRole - - The base-role supplied.
        Returns:
        an OperationFailedException for the error.
      • noKey

        @Message(id=83,
                 value="The KeyStore %s does not contain any keys.")
        org.jboss.msc.service.StartException noKey​(String path)
        Create an exception indicating that there are no keys in the keystore.
        Returns:
        a StartException for the error.
      • aliasNotKey

        @Message(id=84,
                 value="The alias specified \'%s\' is not a Key, valid aliases are %s")
        org.jboss.msc.service.StartException aliasNotKey​(String alias,
                                                         String validList)
        Create an exception indicating that the alias specified is not a key.
        Returns:
        a StartException for the error.
      • aliasNotFound

        @Message(id=85,
                 value="The alias specified \'%s\' does not exist in the KeyStore, valid aliases are %s")
        org.jboss.msc.service.StartException aliasNotFound​(String alias,
                                                           String validList)
        Create an exception indicating that the alias specified was not found.
        Returns:
        a StartException for the error.
      • keyStoreNotFound

        @Message(id=86,
                 value="The KeyStore can not be found at %s")
        org.jboss.msc.service.StartException keyStoreNotFound​(String path)
        Create an exception indicating that the keystore was not found.
        Returns:
        a StartException for the error.
      • multipleCacheConfigurationsDefined

        @Message(id=87,
                 value="Configuration for security realm \'%s\' includes multiple cache definitions at the same position in the hierarchy. Only one is allowed")
        OperationFailedException multipleCacheConfigurationsDefined​(String realmName)
        Error message if more than one cache is defined.
        Parameters:
        realmName - the name of the security realm
        Returns:
        an OperationFailedException for the error.
      • usernameNotLoaded

        @Message(id=88,
                 value="Unable to load username for supplied username \'%s\'")
        NamingException usernameNotLoaded​(String name)
        Creates an exception indicating that is was not possible to load a username for the supplied username.
        Parameters:
        name - the supplied username.
        Returns:
        a NamingException for the error.
      • noNonProgressingOperationFound

        @Message(id=89,
                 value="No operation was found that has been holding the operation execution write lock for long than [%d] seconds")
        OperationFailedException noNonProgressingOperationFound​(long timeout)
      • invalidKeytab

        @Message(id=90,
                 value="Invalid Keytab path")
        org.jboss.msc.service.StartException invalidKeytab​(@Cause
                                                           Exception cause)
        Create an exception indicating an error parsing the Keytab location.
        Returns:
        a StartException for the error.
      • subjectIdentityLoggedOut

        @Message(id=91,
                 value="logout has already been called on this SubjectIdentity.")
        IllegalStateException subjectIdentityLoggedOut()
        Create an exception to indicate that logout has already been called on the SubjectIdentity.
        Returns:
        a IllegalStateException for the error.
      • keytabLoginFailed

        @LogMessage(level=ERROR)
        @Message(id=93,
                 value="Login failed using Keytab for principal \'%s\' to handle request for host \'%s\'")
        void keytabLoginFailed​(String principal,
                               String host,
                               @Cause
                               LoginException e)
        Logs a message indicating that attempting to login using a specific keytab failed.
      • kerberosWithoutKeytab

        @Message(id=94,
                 value="Kerberos is enabled for authentication on security realm \'%s\' but no Keytab has been added to the server-identity.")
        OperationFailedException kerberosWithoutKeytab​(String realm)
        Create an OperationFailedException where a security realm has Kerberos enabled for authentication but no Keytab in the server-identities.
        Parameters:
        realm - The name of the security realm.
        Returns:
        a OperationFailedException for the error.
      • noCipherSuitesInCommon

        @Message(id=95,
                 value="No cipher suites in common, supported=(%s), requested=(%s)")
        org.jboss.msc.service.StartException noCipherSuitesInCommon​(String supported,
                                                                    String requested)
        Create an StartException where the requested cipher suites do not match any of the supported cipher suites.
        Parameters:
        supported - the supported cipher suites
        requested - the requested cipher suites
        Returns:
        a StartException for the error.
      • noProtocolsInCommon

        @Message(id=96,
                 value="No protocols in common, supported=(%s), requested=(%s)")
        org.jboss.msc.service.StartException noProtocolsInCommon​(String supported,
                                                                 String requested)
        Create an StartException where the requested protocols do not match any of the supported protocols.
        Parameters:
        supported - the supported protocols
        requested - the requested protocols
        Returns:
        a StartException for the error.
      • passwordShouldNotBeEqual

        @Message(id=97,
                 value="Password should not be equal to \'%s\', this value is restricted.")
        PasswordValidationException passwordShouldNotBeEqual​(String password)
        The error message for password which has forbidden value.
        Parameters:
        password - - password value.
        Returns:
        a PasswordValidationException for the message.
      • passwordUsernameShouldNotMatch

        @Message(id=98,
                 value="The password should be different from the username")
        PasswordValidationException passwordUsernameShouldNotMatch()
        Error message if the password and username match.
        Returns:
        an PasswordValidationException for the error.
      • passwordShouldHaveXCharacters

        @Message(id=99,
                 value="Password should have at least %s characters!")
        PasswordValidationException passwordShouldHaveXCharacters​(int desiredLength)
        The error message for password which is not long enough.
        Parameters:
        desiredLength - - desired length of password.
        Returns:
        a PasswordValidationException for the message.
      • passwordShouldHaveAlpha

        @Message(id=100,
                 value="Password should have at least %d alphanumeric character.")
        String passwordShouldHaveAlpha​(int minAlpha)
        The error message for password which has not enough alpha numerical values.
        Parameters:
        minAlpha - - minimum alpha numerical values.
        Returns:
        a String for the message.
      • passwordShouldHaveDigit

        @Message(id=101,
                 value="Password should have at least %d digit.")
        String passwordShouldHaveDigit​(int minDigit)
        The error message for password which has not enough digit.
        Parameters:
        minDigit - - minimum digit values.
        Returns:
        a String for the message.
      • passwordShouldHaveSymbol

        @Message(id=102,
                 value="Password should have at least %s non-alphanumeric symbol.")
        String passwordShouldHaveSymbol​(int minSymbol)
        The error message for password which has not enough symbol.
        Parameters:
        minSymbol - - minimum symbol values.
        Returns:
        a String for the message.
      • suffixContainsMillis

        @Message(id=104,
                 value="The suffix (%s) can not contain seconds or milliseconds.")
        OperationFailedException suffixContainsMillis​(String suffix)
        The error message indicating a suffix contains seconds or milliseconds and the handler does not allow it.
        Parameters:
        suffix - the suffix value.
        Returns:
        a OperationFailedException for the error.
      • invalidSuffix

        @Message(id=105,
                 value="The suffix (%s) is invalid. A suffix must be a valid date format.")
        OperationFailedException invalidSuffix​(String suffix)
        The error message indicating a suffix is invalid.
        Parameters:
        suffix - the suffix value.
        Returns:
        a OperationFailedException for the error.
      • filePermissionsProblemsFound

        @Message(id=106,
                 value="File permissions problems found while attempting to update %s file.")
        String filePermissionsProblemsFound​(String file)
        A message indicating file permissions problems found with mgmt-users.properties.
        Returns:
        a String for the message.
      • domainRolloutNotProgressing

        @Message(id=107,
                 value="Operation \'%s\' has been holding the operation execution write lock for longer than [%d] seconds, but it is part of the rollout of a domain-wide operation with domain-uuid \'%s\' that has other operations that are alsonot progressing. Their ids are: %s. Cancellation of the operation on the domain controller is recommended.")
        OperationFailedException domainRolloutNotProgressing​(String exclusiveLock,
                                                             long timeout,
                                                             String domainUUID,
                                                             Collection relatedOps)
      • unsupportedResource

        @Message(id=108,
                 value="Unsupported resource \'%s\'")
        IllegalStateException unsupportedResource​(String name)
        A message indicating an unsupported resource in the model during marshalling.
        Parameters:
        name - the name of the resource.
        Returns:
        The exception for the error.
      • keyTabFileNotFound

        @Message(id=109,
                 value="The Keytab file \'%s\' does not exist.")
        org.jboss.msc.service.StartException keyTabFileNotFound​(String fileName)
        The error to indicate that a specified KeyTab can not be found.
        Parameters:
        fileName - the full path to the KeyTab.
        Returns:
        The exception for the error.
      • unableToLoadSimpleNameForGroup

        @Message(id=110,
                 value="Unable to load a simple name for group \'%s\'")
        NamingException unableToLoadSimpleNameForGroup​(String distinguishedName)
        The error to indicate where it has not been possible to load a distinguished name for a group.
        Parameters:
        distinguishedName - the distinguished name of the group that failed to load.
        Returns:
        The exception for the error.
      • keystoreWillBeCreated

        @Message(id=111,
                 value="Keystore %s not found, it will be auto-generated on first use with a self-signed certificate for host %s")
        @LogMessage(level=WARN)
        void keystoreWillBeCreated​(String file,
                                   String host)
      • failedToGenerateSelfSignedCertificate

        @Message(id=112,
                 value="Failed to generate self-signed certificate")
        RuntimeException failedToGenerateSelfSignedCertificate​(@Cause
                                                               Exception e)
      • keystoreHasBeenCreated

        @Message(id=113,
                 value="Generated self-signed certificate at %s. Please note that self-signed certificates are not secure, and should only be used for testing purposes. Do not use this self-signed certificate in production.%nSHA-1 fingerprint of the generated key is %s%nSHA-256 fingerprint of the generated key is %s")
        @LogMessage(level=WARN)
        void keystoreHasBeenCreated​(String file,
                                    String sha1,
                                    String sha256)
      • failedToCreateLazyInitSSLContext

        @Message(id=114,
                 value="Failed to lazily initialize SSL context")
        RuntimeException failedToCreateLazyInitSSLContext​(@Cause
                                                          Exception e)
      • removedBrokenResource

        @Message(id=135,
                 value="The resource %s wasn\'t working properly and has been removed.")
        String removedBrokenResource​(String address)
      • noSubjectIdentityForProtocolAndHost

        @Message(id=139,
                 value="No SubjectIdentity found for %s/%s.")
        GeneralSecurityException noSubjectIdentityForProtocolAndHost​(String protocol,
                                                                     String host)
      • usingDeprecatedSystemProperty

        @Message(id=140,
                 value="You shouldn\'t use the system property \"%s\" as it is deprecated. Use the management model configuration instead.")
        org.jboss.msc.service.StartException usingDeprecatedSystemProperty​(String propertyName)
      • legacyMechanismsAreNotSupported

        @Message(id=142,
                 value="Following mechanisms configured on the server (%s) are not supported by the realm \'%s\'.")
        org.jboss.msc.service.StartException legacyMechanismsAreNotSupported​(String mechanismNames,
                                                                             String realmName)
        StartException to indicate that some legacy mechanisms are not supported by security realm,
        Parameters:
        mechanismNames - - the names of the unsopported mechanisms
        realmName - - the name of security realm
        Returns:
        an StartException for the failure.
      • invalidSensitiveClassificationAttribute

        @Message(id=143,
                 value="Invalid sensitive classification attribute \'%s\'")
        IllegalStateException invalidSensitiveClassificationAttribute​(String attr)
      • imcompatibleConfiguredRequiresAttributeValue

        @Message(id=144,
                 value="Sensitivity constraint %s contains imcompatible attribute value to other sensitive classification constraints.")
        OperationFailedException imcompatibleConfiguredRequiresAttributeValue​(String addr)
      • securityRealmsUnsupported

        @Message(id=145,
                 value="Security realms are no longer supported, please remove them from the configuration.")
        XMLStreamException securityRealmsUnsupported()
      • outboundConnectionsUnsupported

        @Message(id=146,
                 value="Outbound connections are no longer supported, please remove them from the configuration.")
        XMLStreamException outboundConnectionsUnsupported()
      • passwordUsernameMustMatchInfo

        @Message(id=0,
                 value="The password must be different from the username")
        String passwordUsernameMustMatchInfo()
        Information message saying the username and password must be different.
        Returns:
        an String for the error.
      • passwordUsernameShouldMatchInfo

        @Message(id=0,
                 value="The password should be different from the username")
        String passwordUsernameShouldMatchInfo()
        Information message saying the username and password should be different.
        Returns:
        an String for the error.
      • passwordMustNotEqualInfo

        @Message(id=0,
                 value="The password must not be one of the following restricted values {%s}")
        String passwordMustNotEqualInfo​(String restricted)
        Information message saying the password must not equal any of the restricted values.
        Parameters:
        restricted - - A list of restricted values.
        Returns:
        a String for the message.
      • passwordShouldNotEqualInfo

        @Message(id=0,
                 value="The password should not be one of the following restricted values {%s}")
        String passwordShouldNotEqualInfo​(String restricted)
        Information message saying the password should not equal any of the restricted values.
        Parameters:
        restricted - - A list of restricted values.
        Returns:
        a String for the message.
      • passwordLengthInfo

        @Message(id=0,
                 value="%s characters")
        String passwordLengthInfo​(int desiredLength)
        Information message to describe how many characters need to be in the password.
        Parameters:
        desiredLength - - desired length of password.
        Returns:
        a String for the message.
      • passwordMustHaveAlphaInfo

        @Message(id=0,
                 value="%d alphabetic character(s)")
        String passwordMustHaveAlphaInfo​(int minAlpha)
        Information message for the number of alphanumerical characters required in a password.
        Parameters:
        minAlpha - - minimum alpha numerical values.
        Returns:
        a String for the message.
      • passwordMustHaveDigitInfo

        @Message(id=0,
                 value="%d digit(s)")
        String passwordMustHaveDigitInfo​(int minDigit)
        Information message for the number of digits required in a password.
        Parameters:
        minDigit - - minimum digit values.
        Returns:
        a String for the message.
      • passwordMustHaveSymbolInfo

        @Message(id=0,
                 value="%s non-alphanumeric symbol(s)")
        String passwordMustHaveSymbolInfo​(int minSymbol)
        Information message for the number of non alphanumerical symbols required in a password.
        Parameters:
        minSymbol - - minimum symbol values.
        Returns:
        a String for the message.
      • passwordMustContainInfo

        @Message(id=0,
                 value="The password must contain at least %s")
        String passwordMustContainInfo​(String requirements)
        Information message to describe what a password must contain.
        Parameters:
        requirements - - The requirements list to contain in the message.
        Returns:
        a String for the message.
      • passwordShouldContainInfo

        @Message(id=0,
                 value="The password should contain at least %s")
        String passwordShouldContainInfo​(String requirements)
        Information message to describe what a password should contain.
        Parameters:
        requirements - - The requirements list to contain in the message.
        Returns:
        a String for the message.
      • sureToSetPassword

        @Message(id=0,
                 value="Are you sure you want to use the password entered yes/no?")
        String sureToSetPassword()
        A prompt to double check the user is really sure they want to set password.
        Returns:
        a String for the message.
      • usageDescription

        @Message(id=0,
                 value="The add-user script is a utility for adding new users to the properties files for out-of-the-box authentication. It can be used to manage users in ManagementRealm and ApplicationRealm.")
        String usageDescription()
        A general description of the utility usage.
        Returns:
        a String for the message.
      • argUsage

        @Message(id=0,
                 value="Usage: ./add-user.sh [args...]%nwhere args include:")
        String argUsage()
        Instructions for the AddUser.CommandLineArgument.USAGE command line argument.
        Returns:
        the message.
      • argUserProperties

        @Message(id=0,
                 value="The file name of the user properties file which can be an absolute path.")
        String argUserProperties()
        Instructions for the AddUser.CommandLineArgument.USER_PROPERTIES command line argument.
        Returns:
        the message.
      • argGroupProperties

        @Message(id=0,
                 value="The file name of the group properties file which can be an absolute path. (If group properties is specified then user properties MUST also be specified).")
        String argGroupProperties()
        Instructions for the AddUser.CommandLineArgument.GROUP_PROPERTIES command line argument.
        Returns:
        the message.
      • argPassword

        @Message(id=0,
                 value="Password of the user, this will be checked against the password requirements defined within the add-user.properties configuration")
        String argPassword()
        Instructions for the AddUser.CommandLineArgument.PASSWORD command line argument.
        Returns:
        the message.
      • argRealm

        @Message(id=0,
                 value="Name of the realm used to secure the management interfaces (default is \"ManagementRealm\")")
        String argRealm()
        Instructions for the AddUser.CommandLineArgument.REALM command line argument.
        Returns:
        the message.
      • argSilent

        @Message(id=0,
                 value="Activate the silent mode (no output to the console)")
        String argSilent()
        Instructions for the AddUser.CommandLineArgument.SILENT command line argument.
        Returns:
        the message.
      • argRole

        @Message(id=0,
                 value="Comma-separated list of roles for the user.")
        String argRole()
        Instructions for the AddUser.CommandLineArgument.ROLE command line argument.
        Returns:
        the message.
      • yes

        @Message(id=0,
                 value="yes")
        String yes()
        The long value a user would enter to indicate 'yes' This String should be the lower case representation in the respective locale.
        Returns:
        The value a user would enter to indicate 'yes'.
      • shortYes

        @Message(id=0,
                 value="y")
        String shortYes()
        The short value a user would enter to indicate 'yes' If no short value is available for a specific translation then only the long value will be accepted. This String should be the lower case representation in the respective locale.
        Returns:
        The short value a user would enter to indicate 'yes'.
      • no

        @Message(id=0,
                 value="no")
        String no()
        The long value a user would enter to indicate 'no' This String should be the lower case representation in the respective locale.
        Returns:
        The value a user would enter to indicate 'no'.
      • shortNo

        @Message(id=0,
                 value="n")
        String shortNo()
        The short value a user would enter to indicate 'no' If no short value is available for a specific translation then only the long value will be accepted. This String should be the lower case representation in the respective locale.
        Returns:
        The short value a user would enter to indicate 'no'.
      • alternativeRealm

        @Message(id=0,
                 value="The realm name supplied must match the name used by the server configuration which by default would be \'%s\'")
        String alternativeRealm​(String defaultRealm)
        Message to check if an alternative realm is really desired.
        Returns:
        the message.
      • realmConfirmation

        @Message(id=0,
                 value="Are you sure you want to set the realm to \'%s\'")
        String realmConfirmation​(String chosenRealm)
        Confirmation of realm choice.
        Returns:
        the message.
      • passwordRequirements

        @Message(id=0,
                 value="Password requirements are listed below. To modify these restrictions edit the add-user.properties configuration file.")
        String passwordRequirements()
        Display password requirements and the command line argument option to modify these restrictions
      • passwordRecommendations

        @Message(id=0,
                 value="Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.")
        String passwordRecommendations()
        Display password recommendations and the command line argument option to modify these restrictions
      • userSuppliedRealm

        @Message(id=0,
                 value="Using realm \'%s\' as specified on the command line.")
        String userSuppliedRealm​(String realmName)
        Message stating command line supplied realm name in use.
      • discoveredRealm

        @Message(id=0,
                 value="Using realm \'%s\' as discovered from the existing property files.")
        String discoveredRealm​(String realmName)
        Message stating discovered realm name in use.
      • multipleRealmDeclarations

        @Message(id=0,
                 value="Users properties file \'%s\' contains multiple realm name declarations")
        IOException multipleRealmDeclarations​(String usersFile)
        Message stating multiple realm name declarations are in users properties file.
      • callbackHandlerNotInitialized

        @Message(id=0,
                 value="The callback handler is not initialized for domain server %s.")
        IllegalStateException callbackHandlerNotInitialized​(String serverName)
      • unableToObtainCredential

        @Message(id=0,
                 value="Unable to obtain credential for server %s")
        IllegalStateException unableToObtainCredential​(String serverName)