Class Base64MD5PasswordFilePrincipalDatabase

  • All Implemented Interfaces:
    PrincipalDatabase

    public class Base64MD5PasswordFilePrincipalDatabase
    extends AbstractPasswordFilePrincipalDatabase<HashedUser>
    Represents a user database where the account information is stored in a simple flat file. The file is expected to be in the form: username:password username1:password1 ... usernamen:passwordn where a carriage return separates each username/password pair. Passwords are assumed to be in plain text.
    • Method Detail

      • verifyPassword

        public boolean verifyPassword​(java.lang.String principal,
                                      char[] password)
                               throws javax.security.auth.login.AccountNotFoundException
        Used to verify that the presented Password is correct. Currently only used by Management Console
        Parameters:
        principal - The principal to authenticate
        password - The password to check
        Returns:
        true if password is correct
        Throws:
        javax.security.auth.login.AccountNotFoundException - if the principal cannot be found
      • getMechanisms

        public java.util.List<java.lang.String> getMechanisms()
        Description copied from interface: PrincipalDatabase
        Get the list of mechanisms supported for use with the PrincipalDatabase
        Returns:
        space separated list of supported Sasl mechanisms