org.jboss.seam.security.management
Class IdentityManager
java.lang.Object
org.jboss.seam.security.management.IdentityManager
@Scope(value=APPLICATION)
@Name(value="org.jboss.seam.security.identityManager")
@Install(precedence=0)
public class IdentityManager
- extends Object
Identity Management API, deals with user name/password-based identity management.
- Author:
- Shane Bryzak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTITY_STORE_COMPONENT_NAME
public static final String IDENTITY_STORE_COMPONENT_NAME
- See Also:
- Constant Field Values
IdentityManager
public IdentityManager()
create
@Create
public void create()
initIdentityStore
protected void initIdentityStore()
instance
public static IdentityManager instance()
createAccount
public boolean createAccount(String name,
String password)
enableAccount
public boolean enableAccount(String name)
disableAccount
public boolean disableAccount(String name)
grantRole
public boolean grantRole(String name,
String role)
revokeRole
public boolean revokeRole(String name,
String role)
listUsers
public List<String> listUsers()
listUsers
public List<String> listUsers(String filter)
listRoles
public List<String> listRoles()
getGrantedRoles
public List<String> getGrantedRoles(String name)
getImpliedRoles
public List<String> getImpliedRoles(String name)
authenticate
public boolean authenticate(String username,
String password)
getIdentityStore
public IdentityStore getIdentityStore()
setIdentityStore
public void setIdentityStore(IdentityStore identityStore)