Class UserManagerAuthenticator

All Implemented Interfaces:
INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation, IAuthenticator

public class UserManagerAuthenticator extends Lifecycle implements IAuthenticator
Since:
3.3
Author:
Eike Stepper
  • Field Details

  • Constructor Details

    • UserManagerAuthenticator

      public UserManagerAuthenticator()
  • Method Details

    • getEncryptionAlgorithmName

      public String getEncryptionAlgorithmName()
    • setEncryptionAlgorithmName

      public void setEncryptionAlgorithmName(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)
    • getRandomizer

      public IRandomizer getRandomizer()
    • setRandomizer

      public void setRandomizer(IRandomizer randomizer)
    • getUserManager

      public IUserManager getUserManager()
    • setUserManager

      public void setUserManager(IUserManager userManager)
    • authenticate

      public void authenticate(String userID, char[] password) throws 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:
      SecurityException
    • doBeforeActivate

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

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

      protected byte[] createRandomToken()