org.eclipse.net4j.util.security
Class UserManager
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.security.UserManager
- All Implemented Interfaces:
- INotifier, ILifecycle, ILifecycle.DeferrableActivation, IUserManager
- Direct Known Subclasses:
- FileUserManager
- public class UserManager
- extends Lifecycle
- implements IUserManager
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString |
users
protected transient Map<String,char[]> users
UserManager
public UserManager()
addUser
public void addUser(String userID,
char[] password)
- Specified by:
addUser
in interface IUserManager
removeUser
public void removeUser(String userID)
- Specified by:
removeUser
in interface IUserManager
encrypt
public byte[] encrypt(String userID,
byte[] data,
String algorithmName,
byte[] salt,
int count)
throws SecurityException
- Specified by:
encrypt
in interface IUserManager
- Throws:
SecurityException
- Since:
- 2.0
doActivate
protected void doActivate()
throws Exception
- Overrides:
doActivate
in class Lifecycle
- Throws:
Exception
doDeactivate
protected void doDeactivate()
throws Exception
- Overrides:
doDeactivate
in class Lifecycle
- Throws:
Exception
load
protected void load(Map<String,char[]> users)
throws IORuntimeException
- Throws:
IORuntimeException
save
protected void save(Map<String,char[]> users)
throws IORuntimeException
- Throws:
IORuntimeException
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.