public abstract class RepositoryUserManager extends Lifecycle implements IUserManager, IAuthenticator
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryUserManager.RepositoryAuthenticatorFactory
If the meaning of this type isn't clear, there really should be more of a description here...
|
static class |
RepositoryUserManager.RepositoryInjector
If the meaning of this type isn't clear, there really should be more of a description here...
|
static class |
RepositoryUserManager.RepositoryUserManagerFactory
If the meaning of this type isn't clear, there really should be more of a description here...
|
ILifecycle.DeferrableActivation
Modifier | Constructor and Description |
---|---|
protected |
RepositoryUserManager() |
Modifier and Type | Method and Description |
---|---|
void |
addUser(String userID,
char[] password) |
void |
authenticate(String userID,
char[] password) |
byte[] |
encrypt(String userID,
byte[] data,
String algorithmName,
byte[] salt,
int count) |
protected abstract char[] |
getPassword(IRepository repository,
String userID) |
protected char[] |
getPassword(String userID) |
protected IRepository |
getRepository(IManagedContainer container,
String repositoryName) |
static void |
prepareContainer(IManagedContainer container,
RepositoryUserManager.RepositoryUserManagerFactory factory) |
void |
removeUser(String userID) |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public void addUser(String userID, char[] password)
addUser
in interface IUserManager
public void removeUser(String userID)
removeUser
in interface IUserManager
public byte[] encrypt(String userID, byte[] data, String algorithmName, byte[] salt, int count) throws SecurityException
encrypt
in interface IUserManager
SecurityException
public void authenticate(String userID, char[] password) throws SecurityException
authenticate
in interface IAuthenticator
SecurityException
protected IRepository getRepository(IManagedContainer container, String repositoryName)
protected char[] getPassword(String userID)
protected abstract char[] getPassword(IRepository repository, String userID)
public static void prepareContainer(IManagedContainer container, RepositoryUserManager.RepositoryUserManagerFactory factory)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.