Class UserManagerAuthenticator

    • Constructor Detail

      • UserManagerAuthenticator

        public UserManagerAuthenticator()
    • Method Detail

      • getEncryptionAlgorithmName

        public java.lang.String getEncryptionAlgorithmName()
      • setEncryptionAlgorithmName

        public void setEncryptionAlgorithmName​(java.lang.String encryptionAlgorithmName)
      • getEncryptionSaltBytes

        public byte[] getEncryptionSaltBytes()
      • setEncryptionSaltBytes

        public void setEncryptionSaltBytes​(byte[] encryptionSaltBytes)
      • getEncryptionIterationCount

        public int getEncryptionIterationCount()
      • setEncryptionIterationCount

        public void setEncryptionIterationCount​(int encryptionIterationCount)
      • getTokenLength

        public int getTokenLength()
      • setTokenLength

        public void setTokenLength​(int tokenLength)
      • setRandomizer

        public void setRandomizer​(IRandomizer randomizer)
      • setUserManager

        public void setUserManager​(IUserManager userManager)
      • authenticate

        public void authenticate​(java.lang.String userID,
                                 char[] password)
                          throws java.lang.SecurityException
        Description copied from interface: IAuthenticator
        Authenticates the user with the passed userID by checking whether the supplied password matches the password stored for this user.

        The implementation is required to throw a SecurityException if the passwords do not match.

        Specified by:
        authenticate in interface IAuthenticator
        Throws:
        java.lang.SecurityException
      • doBeforeActivate

        protected void doBeforeActivate()
                                 throws java.lang.Exception
        Overrides:
        doBeforeActivate in class Lifecycle
        Throws:
        java.lang.Exception
      • doActivate

        protected void doActivate()
                           throws java.lang.Exception
        Overrides:
        doActivate in class Lifecycle
        Throws:
        java.lang.Exception
      • createRandomToken

        protected byte[] createRandomToken()