org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping Class Reference

List of all members.

Static Public Member Functions

void addUserToRoleMapping (String contextId, String principalName, String[] roles)
void addGlobalUserToRoleMapping (String principalName, String[] roles)
String[] getMappingForPrincipal (String contextId, String principalName)
String[] getGlobalMappingForPrincipal (String principalName)
void removeUserToRoleMapping (String contextId)

Static Public Attributes

final String GLOBAL_CTXID = "global"

Detailed Description

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

Definition at line 37 of file JPolicyUserRoleMapping.java.


Member Function Documentation

void org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping.addGlobalUserToRoleMapping String  principalName,
String[]  roles
[static]
 

Add a mapping for the given principal name (on all JVM)

Parameters:
principalName mapping for this principal name
roles roles for the principal

Definition at line 76 of file JPolicyUserRoleMapping.java.

void org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping.addUserToRoleMapping String  contextId,
String  principalName,
String[]  roles
[static]
 

Add a mapping for the given principal name

Parameters:
contextId Id of the application
principalName mapping for this principal name
roles roles for the principal

Definition at line 62 of file JPolicyUserRoleMapping.java.

String [] org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping.getGlobalMappingForPrincipal String  principalName  )  [static]
 

Gets the mapping for a principal name

Parameters:
principalName name of the principal on which we want to retrieve roles
Returns:
array of roles

Definition at line 102 of file JPolicyUserRoleMapping.java.

String [] org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping.getMappingForPrincipal String  contextId,
String  principalName
[static]
 

Gets the mapping for a principal name

Parameters:
contextId Id of the application
principalName name of the principal on which we want to retrieve roles
Returns:
array of roles

Definition at line 87 of file JPolicyUserRoleMapping.java.

void org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping.removeUserToRoleMapping String  contextId  )  [static]
 

Remove a mapping for the given context Id

Parameters:
contextId Id of the application

Definition at line 110 of file JPolicyUserRoleMapping.java.


Member Data Documentation

final String org.objectweb.jonas.security.jacc.JPolicyUserRoleMapping.GLOBAL_CTXID = "global" [static]
 

Global contextID (per JVM configuration)

Definition at line 42 of file JPolicyUserRoleMapping.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:44 2005 for JOnAS by  doxygen 1.3.9.1