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, registerAction
public void login(String domain, String identityid, String password) throws UnauthorizedException
SimpleIdentityManager
UnauthorizedException
public void logout()
SimpleIdentityManager
public SimpleIdentity getCurrentIdentity()
SimpleIdentityManager
public void sudo(String domain, String identityid, Runnable acction)
SimpleIdentityManager