public class UserManagerAuthenticator extends Lifecycle implements IAuthenticator
ILifecycle.DeferrableActivation| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TOKEN_LENGTH |
| Constructor and Description |
|---|
UserManagerAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(java.lang.String userID,
char[] password)
Authenticates the user with the passed
userID by checking whether the supplied password
matches the password stored for this user. |
protected byte[] |
createRandomToken() |
protected void |
doActivate() |
protected void |
doBeforeActivate() |
java.lang.String |
getEncryptionAlgorithmName() |
int |
getEncryptionIterationCount() |
byte[] |
getEncryptionSaltBytes() |
IRandomizer |
getRandomizer() |
int |
getTokenLength() |
IUserManager |
getUserManager() |
void |
setEncryptionAlgorithmName(java.lang.String encryptionAlgorithmName) |
void |
setEncryptionIterationCount(int encryptionIterationCount) |
void |
setEncryptionSaltBytes(byte[] encryptionSaltBytes) |
void |
setRandomizer(IRandomizer randomizer) |
void |
setTokenLength(int tokenLength) |
void |
setUserManager(IUserManager userManager) |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic static final int DEFAULT_TOKEN_LENGTH
public java.lang.String getEncryptionAlgorithmName()
public void setEncryptionAlgorithmName(java.lang.String encryptionAlgorithmName)
public byte[] getEncryptionSaltBytes()
public void setEncryptionSaltBytes(byte[] encryptionSaltBytes)
public int getEncryptionIterationCount()
public void setEncryptionIterationCount(int encryptionIterationCount)
public int getTokenLength()
public void setTokenLength(int tokenLength)
public IRandomizer getRandomizer()
public void setRandomizer(IRandomizer randomizer)
public IUserManager getUserManager()
public void setUserManager(IUserManager userManager)
public void authenticate(java.lang.String userID,
char[] password)
throws java.lang.SecurityException
IAuthenticatoruserID 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.
authenticate in interface IAuthenticatorjava.lang.SecurityExceptionprotected void doBeforeActivate()
throws java.lang.Exception
doBeforeActivate in class Lifecyclejava.lang.Exceptionprotected void doActivate()
throws java.lang.Exception
doActivate in class Lifecyclejava.lang.Exceptionprotected byte[] createRandomToken()
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html