org.jboss.seam.security.management
Class IdentityManager

java.lang.Object
  extended by 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

Field Summary
static String IDENTITY_STORE_COMPONENT_NAME
           
 
Constructor Summary
IdentityManager()
           
 
Method Summary
 boolean authenticate(String username, String password)
           
 void create()
           
 boolean createAccount(String name, String password)
           
 boolean disableAccount(String name)
           
 boolean enableAccount(String name)
           
 List<String> getGrantedRoles(String name)
           
 IdentityStore getIdentityStore()
           
 List<String> getImpliedRoles(String name)
           
 boolean grantRole(String name, String role)
           
protected  void initIdentityStore()
           
static IdentityManager instance()
           
 List<String> listRoles()
           
 List<String> listUsers()
           
 List<String> listUsers(String filter)
           
 boolean revokeRole(String name, String role)
           
 void setIdentityStore(IdentityStore identityStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY_STORE_COMPONENT_NAME

public static final String IDENTITY_STORE_COMPONENT_NAME
See Also:
Constant Field Values
Constructor Detail

IdentityManager

public IdentityManager()
Method Detail

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)