|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.mapping.providers.MappingProviderUtil
public class MappingProviderUtil
Utility class for Mapping Providers
| Field Summary | |
|---|---|
static org.jboss.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
MappingProviderUtil()
|
|
| Method Summary | |
|---|---|
static Group |
addPrincipals(Group grp,
Enumeration<? extends Principal> en)
Add principals passed via an enumeration into a group |
static Group |
addRoles(Group roles,
String[] addRoles)
Add the roles into the Group |
static String[] |
getRolesFromCommaSeparatedString(String str)
Given a comma-separated list of roles, return a string array |
static Principal |
instantiatePrincipal(Class<?> cls,
String role)
Instantiate a Principal representing a principal |
static Group |
removePrincipals(Group grp)
Remove all the principals from the group |
static Group |
removeRoles(Group roles,
String[] removeRoles)
Remove the roles from the Group |
static Group |
replacePrincipals(Group fg,
Group sg)
Replace the principals in first group with those in the second |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static org.jboss.logging.Logger log
| Constructor Detail |
|---|
public MappingProviderUtil()
| Method Detail |
|---|
public static Group addPrincipals(Group grp,
Enumeration<? extends Principal> en)
grp - en -
public static Group addRoles(Group roles,
String[] addRoles)
roles - Group of rolesaddRoles -
public static String[] getRolesFromCommaSeparatedString(String str)
str -
public static Principal instantiatePrincipal(Class<?> cls,
String role)
cls - principal classrole - Name of the role
public static Group removePrincipals(Group grp)
grp -
public static Group removeRoles(Group roles,
String[] removeRoles)
roles - Group of rolesremoveRoles -
public static Group replacePrincipals(Group fg,
Group sg)
fg - sg -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||