Klasse UserManagerAuthenticator

Alle implementierten Schnittstellen:
INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation, IAuthenticator

public class UserManagerAuthenticator extends Lifecycle implements IAuthenticator
Seit:
3.3
Autor:
Eike Stepper
  • Felddetails

    • DEFAULT_TOKEN_LENGTH

      public static final int DEFAULT_TOKEN_LENGTH
      Siehe auch:
  • Konstruktordetails

    • UserManagerAuthenticator

      public UserManagerAuthenticator()
  • Methodendetails

    • 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
      Beschreibung aus Schnittstelle kopiert: 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.

      Angegeben von:
      authenticate in Schnittstelle IAuthenticator
      Löst aus:
      SecurityException
    • doBeforeActivate

      protected void doBeforeActivate() throws Exception
      Setzt außer Kraft:
      doBeforeActivate in Klasse Lifecycle
      Löst aus:
      Exception
    • doActivate

      protected void doActivate() throws Exception
      Setzt außer Kraft:
      doActivate in Klasse Lifecycle
      Löst aus:
      Exception
    • createRandomToken

      protected byte[] createRandomToken()