public abstract class AbstractSimpleIdentityManager extends java.lang.Object implements SimpleIdentityManager
Modifier and Type | Field and Description |
---|---|
protected java.util.Set |
registeredActions |
protected java.util.Map<java.lang.String,Rule> |
rules |
GUEST_IDENTITY_ID
Modifier | Constructor and Description |
---|---|
protected |
AbstractSimpleIdentityManager() |
Modifier and Type | Method and Description |
---|---|
void |
addRule(Rule rule) |
java.util.Collection |
getActions()
Return a list of the actions that are registered.
|
SimpleIdentity |
getAdministrator() |
abstract SimpleIdentity |
getIdentity(java.lang.String identityid) |
java.util.Collection<Rule> |
getRules() |
boolean |
needDomain()
Inform if the login process require a domain name.
|
void |
registerAction(java.lang.String actionName)
Register the actionName as an action that require authorization.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentIdentity, login, logout, sudo
protected java.util.Set registeredActions
protected java.util.Map<java.lang.String,Rule> rules
public abstract SimpleIdentity getIdentity(java.lang.String identityid)
public SimpleIdentity getAdministrator()
getAdministrator
in interface SimpleIdentityManager
public boolean needDomain()
SimpleIdentityManager
needDomain
in interface SimpleIdentityManager
public void registerAction(java.lang.String actionName)
SimpleIdentityManager
registerAction
in interface SimpleIdentityManager
public java.util.Collection getActions()
SimpleIdentityManager
getActions
in interface SimpleIdentityManager
public void addRule(Rule rule)
addRule
in interface SimpleIdentityManager
public java.util.Collection<Rule> getRules()
getRules
in interface SimpleIdentityManager