org.jboss.seam.security.management
@Scope(value=EVENT) @Name(value="org.jboss.seam.security.identityManager") @Install(precedence=0) @BypassInterceptors public class IdentityManager extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
PERMISSION_CREATE |
static String |
PERMISSION_DELETE |
static String |
PERMISSION_READ |
static String |
PERMISSION_UPDATE |
static String |
ROLE_PERMISSION_NAME |
static String |
USER_PERMISSION_NAME |
Constructor and Description |
---|
IdentityManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
addRoleToGroup(String role,
String group) |
boolean |
authenticate(String username,
String password) |
boolean |
changePassword(String name,
String password) |
void |
create() |
boolean |
createRole(String role) |
boolean |
createUser(String name,
String password) |
boolean |
createUser(String name,
String password,
String firstname,
String lastname) |
boolean |
deleteRole(String role) |
boolean |
deleteUser(String name) |
boolean |
disableUser(String name) |
boolean |
enableUser(String name) |
List<String> |
getGrantedRoles(String name)
Returns a list of the roles that are explicitly granted to the specified user;
|
IdentityStore |
getIdentityStore() |
List<String> |
getImpliedRoles(String name)
Returns a list of roles that are either explicitly or indirectly granted to the specified user.
|
List<String> |
getRoleGroups(String name) |
IdentityStore |
getRoleIdentityStore() |
boolean |
grantRole(String name,
String role) |
protected void |
initIdentityStore() |
static IdentityManager |
instance() |
boolean |
isEnabled() |
boolean |
isUserEnabled(String name) |
List<String> |
listGrantableRoles() |
List<Principal> |
listMembers(String role) |
List<String> |
listRoles() |
List<String> |
listUsers() |
List<String> |
listUsers(String filter) |
boolean |
removeRoleFromGroup(String role,
String group) |
boolean |
revokeRole(String name,
String role) |
boolean |
roleExists(String name) |
void |
setIdentityStore(IdentityStore identityStore) |
void |
setRoleIdentityStore(IdentityStore roleIdentityStore) |
boolean |
userExists(String name) |
public static final String USER_PERMISSION_NAME
public static final String ROLE_PERMISSION_NAME
public static final String PERMISSION_CREATE
public static final String PERMISSION_READ
public static final String PERMISSION_UPDATE
public static final String PERMISSION_DELETE
@Create public void create()
protected void initIdentityStore()
public static IdentityManager instance()
public boolean createUser(String name, String password, String firstname, String lastname)
public boolean deleteUser(String name)
public boolean enableUser(String name)
public boolean disableUser(String name)
public boolean isUserEnabled(String name)
public boolean createRole(String role)
public boolean deleteRole(String role)
public boolean userExists(String name)
public boolean roleExists(String name)
public List<String> getGrantedRoles(String name)
name
- The user for which to return a list of rolespublic List<String> getImpliedRoles(String name)
name
- The user for which to return the list of rolespublic IdentityStore getIdentityStore()
public void setIdentityStore(IdentityStore identityStore)
public IdentityStore getRoleIdentityStore()
public void setRoleIdentityStore(IdentityStore roleIdentityStore)
public boolean isEnabled()
Copyright © 2015 Seam Framework. All Rights Reserved.