public class DumbIdentityManager extends AbstractSimpleIdentityManager
registeredActions| Constructor and Description |
|---|
DumbIdentityManager() |
| Modifier and Type | Method and Description |
|---|---|
SimpleIdentity |
getCurrentIdentity()
Return the identity of the current session in the system.
|
void |
login(String domain,
String identityid,
String password)
Authenticate the identity in the system and stablish a session with this
identity.
|
void |
logout()
Closes the session stablised with the current identity.
|
void |
sudo(String domain,
String identityid,
Runnable acction)
Run the specified action as the specified identity.
|
getActions, getAdministrator, needDomain, registerActionpublic void login(String domain, String identityid, String password) throws UnauthorizedException
SimpleIdentityManagerUnauthorizedExceptionpublic void logout()
SimpleIdentityManagerpublic SimpleIdentity getCurrentIdentity()
SimpleIdentityManagerpublic void sudo(String domain, String identityid, Runnable acction)
SimpleIdentityManager