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
ACCOUNT_PERMISSION_NAME
public static final String ACCOUNT_PERMISSION_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)
deleteAccount
public boolean deleteAccount(String name)
enableAccount
public boolean enableAccount(String name)
disableAccount
public boolean disableAccount(String name)
changePassword
public boolean changePassword(String name,
String password)
isEnabled
public boolean isEnabled(String name)
grantRole
public boolean grantRole(String name,
String role)
revokeRole
public boolean revokeRole(String name,
String role)
accountExists
public boolean accountExists(String name)
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)