public class DumbIdentityManager extends AbstractSimpleIdentityManager
registeredActions, rules
GUEST_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, registerAction
public SimpleIdentity getIdentity(java.lang.String identityid)
getIdentity
in class AbstractSimpleIdentityManager
public void login(java.lang.String domain, java.lang.String identityid, java.lang.String password) throws UnauthorizedException
SimpleIdentityManager
UnauthorizedException
public void logout()
SimpleIdentityManager
public SimpleIdentity getCurrentIdentity()
SimpleIdentityManager
public void sudo(java.lang.String domain, java.lang.String identityid, java.lang.Runnable acction)
SimpleIdentityManager