|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
MethodAccessManager checks if a client is allowed to execute a method by mapping method names to permissions.
| Method Summary | |
void |
addMethod(Permission permission,
java.lang.Class klass,
java.lang.String method)
Add a method for a permission. |
void |
addMethod(Permission permission,
java.lang.String methodName)
Add a method for a permission. |
void |
addMethods(Permission permission,
java.util.List methodNames)
Add a list of method names for a permission. |
void |
addMethods(Permission permission,
java.lang.String[] methodNames)
Add an array of method names for a permission. |
boolean |
checkPermission(java.util.Set principals,
java.lang.Class klass,
java.lang.String method)
Check if a principal can execute a method. |
boolean |
checkPermission(java.util.Set principals,
java.lang.String methodName)
Check if a principal can execute a method. |
java.util.Set |
getPermissions(java.lang.String methodName)
Get all permissions from which one is needed to execute the method. |
| Method Detail |
public void addMethods(Permission permission,
java.util.List methodNames)
permission - Permission which is needed to execute methodmethodNames - Names of methods with access restrictions
public void addMethod(Permission permission,
java.lang.Class klass,
java.lang.String method)
permission - Permission which is needed to execute methodklass - Class with the methodmethod - Name of the method to restirct access to
public void addMethod(Permission permission,
java.lang.String methodName)
permission - Permission which is needed to execute methodmethodName - Name of method with access restrictions
public void addMethods(Permission permission,
java.lang.String[] methodNames)
permission - Permission which is needed to execute methodmethodNames - Names of methods with access restrictionspublic java.util.Set getPermissions(java.lang.String methodName)
methodName - Method name to get the permission from
public boolean checkPermission(java.util.Set principals,
java.lang.String methodName)
principals - Set of principals to check access to the methodmethodName - Name of the method to check
public boolean checkPermission(java.util.Set principals,
java.lang.Class klass,
java.lang.String method)
principals - Set of principals to check access to the methodklass - Class with the methodmethod - Name of the method to check
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||