| java.lang.Object org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping
JPolicyUserRoleMapping | public class JPolicyUserRoleMapping (Code) | | Helper class to manage user to role mapping
It uses the contextId as identifier.
For clients, as there is no contextId, this is a per jvm property with contextId equals to "global"
author: Florent Benoit |
GLOBAL_CTXID | final public static String GLOBAL_CTXID(Code) | | Global contextID (per JVM configuration)
|
addGlobalUserToRoleMapping | public static void addGlobalUserToRoleMapping(String principalName, String[] roles)(Code) | | Add a mapping for the given principal name (on all JVM)
Parameters: principalName - mapping for this principal name Parameters: roles - roles for the principal |
addUserToRoleMapping | public static void addUserToRoleMapping(String contextId, String principalName, String[] roles)(Code) | | Add a mapping for the given principal name
Parameters: contextId - Id of the application Parameters: principalName - mapping for this principal name Parameters: roles - roles for the principal |
getGlobalMappingForPrincipal | public static String[] getGlobalMappingForPrincipal(String principalName)(Code) | | Gets the mapping for a principal name
Parameters: principalName - name of the principal on which we want to retrieveroles array of roles |
getMappingForPrincipal | public static String[] getMappingForPrincipal(String contextId, String principalName)(Code) | | Gets the mapping for a principal name
Parameters: contextId - Id of the application Parameters: principalName - name of the principal on which we want to retrieveroles array of roles |
removeUserToRoleMapping | public static void removeUserToRoleMapping(String contextId)(Code) | | Remove a mapping for the given context Id
Parameters: contextId - Id of the application |
|
|