|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.security.RoleGuard
Check access for the role-link/role-ref
Constructor Summary | |
RoleGuard(java.lang.String containerName)
Constructor |
Method Summary | |
void |
add(java.lang.String roleRef,
java.lang.String role)
Associate a role-ref to a role |
void |
checkGuard(java.lang.Object roleString)
Check if the role(s) of the principal match the role-ref |
java.lang.String |
toString()
Method toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RoleGuard(java.lang.String containerName)
containerName
- name of the containerMethod Detail |
public void add(java.lang.String roleRef, java.lang.String role)
roleRef
- the role to associaterole
- the associated rolepublic void checkGuard(java.lang.Object roleString) throws java.lang.SecurityException
checkGuard
in interface java.security.Guard
roleString
- the role
java.lang.SecurityException
- if the access is deniedpublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |