public class DumbIdentityManager extends AbstractSimpleIdentityManager
registeredActions, rulesGUEST_IDENTITY_ID| Constructor and Description |
|---|
DumbIdentityManager() |
| Modifier and Type | Method and Description |
|---|---|
SimpleIdentity |
getCurrentIdentity()
Return the identity of the current session in the system.
|
SimpleIdentity |
getIdentity(java.lang.String identityid) |
void |
login(java.lang.String domain,
java.lang.String identityid,
java.lang.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(java.lang.String domain,
java.lang.String identityid,
java.lang.Runnable acction)
Run the specified action as the specified identity.
|
addRule, getActions, getAdministrator, getRules, needDomain, registerActionpublic SimpleIdentity getIdentity(java.lang.String identityid)
getIdentity in class AbstractSimpleIdentityManagerpublic void login(java.lang.String domain,
java.lang.String identityid,
java.lang.String password)
throws UnauthorizedException
SimpleIdentityManagerUnauthorizedExceptionpublic void logout()
SimpleIdentityManagerpublic SimpleIdentity getCurrentIdentity()
SimpleIdentityManagerpublic void sudo(java.lang.String domain,
java.lang.String identityid,
java.lang.Runnable acction)
SimpleIdentityManager