|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.security.MethodGuard
Check if the principal role is matching the role defined for the method
Constructor Summary | |
MethodGuard(java.lang.String containerName)
Constructor |
Method Summary | |
void |
add(java.lang.String methodSignature,
java.lang.String[] roles)
The roles which can access to the method |
void |
checkGuard(java.lang.Object methodSignature)
Check if the role(s) of the principal match the roles of the method |
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 MethodGuard(java.lang.String containerName)
containerName
- name of the containerMethod Detail |
public void add(java.lang.String methodSignature, java.lang.String[] roles)
methodSignature
- signature of the methodroles
- roles required to execute themethodpublic void checkGuard(java.lang.Object methodSignature) throws java.lang.SecurityException
checkGuard
in interface java.security.Guard
methodSignature
- signature of the method
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 |