|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas.security.RoleMechanism
Managed roles defined in jonas-users.properties and check the right access between method roles and principal roles
Method Summary | |
void |
addMapping(java.lang.String principalName,
java.lang.String[] roles)
Add the mapping between a principal name and the associated roles |
static RoleMechanism |
getInstance()
Return the unique instance |
java.util.Hashtable |
getPrincipalDeclarativeRoleMapping()
MBean method: |
boolean |
isCallerInRole(java.security.Principal principal,
java.lang.String role)
Check if the given role match the principal roles |
boolean |
isCallerInRole(java.security.Principal principal,
java.lang.String role,
java.lang.String[] pRoles)
Check if the given role match the principal roles |
boolean |
isCallerInRoles(java.security.Principal principal,
java.lang.String[] roles)
Check if the given roles match the principal roles |
boolean |
isCallerInRoles(java.security.Principal principal,
java.lang.String[] roles,
java.lang.String[] pRoles)
Check if the given roles match the principal roles |
java.lang.String |
toString()
Method toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static RoleMechanism getInstance()
public void addMapping(java.lang.String principalName, java.lang.String[] roles)
principalName
- name of the principalroles
- roles of the principalpublic boolean isCallerInRole(java.security.Principal principal, java.lang.String role, java.lang.String[] pRoles)
principal
- principalrole
- the given rolepRoles
- the roles of the principalpublic boolean isCallerInRole(java.security.Principal principal, java.lang.String role)
principal
- principalrole
- the given rolepublic boolean isCallerInRoles(java.security.Principal principal, java.lang.String[] roles, java.lang.String[] pRoles)
principal
- principalroles
- the given rolespRoles
- the roles of the principalpublic boolean isCallerInRoles(java.security.Principal principal, java.lang.String[] roles)
principal
- principalroles
- the given rolespublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Hashtable getPrincipalDeclarativeRoleMapping()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |