public interface SimpleIdentityManager
Modifier and Type | Method and Description |
---|---|
Collection |
getActions()
Return a list of the actions that are registered.
|
SimpleIdentity |
getAdministrator() |
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.
|
boolean |
needDomain()
Inform if the login process require a domain name.
|
void |
registerAction(String actionName)
Register the actionName as an action that require authorization.
|
void |
sudo(String domain,
String identityid,
Runnable acction)
Run the specified action as the specified identity.
|
void login(String domain, String identityid, String password) throws UnauthorizedException
domain,
- the domain used to authenticate the useridentityid,
- identity id to login in the systempassword
- UnauthorizedException
void logout()
SimpleIdentity getCurrentIdentity()
SimpleIdentity getAdministrator()
boolean needDomain()
void sudo(String domain, String identityid, Runnable acction)
domain
- identityid
- acction
- void registerAction(String actionName)
actionName
- Collection getActions()