|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.security.Permission
|
+--net.larsan.norna.ServicePermission
The service permission is used to fine grain control over the Norna services. The permission uses a target which must equal the service ID the permission refers to or "*" for a blanket permission. The permission takes the follwing actions:
"get,status,start,stop"The 'get' permssions applies to the service registry in getting the service handle. The 'execute' may be checked by the services on any actions on the handle. The 'status' may be checked by the services on the
getStatus method.
The target can be used with a trailing "-" to indicate subpaths.
ServiceRegistry,
Serialized Form| Constructor Summary | |
ServicePermission(java.lang.String target,
java.lang.String action)
Create a permission using a target and an action string. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Check equality on target name and actions. |
java.lang.String |
getActions()
Get the actions of this permission. |
int |
hashCode()
Get hash code based on target name and actions |
boolean |
implies(java.security.Permission perm)
Check if a permission is 'implied' by this permission. |
| Methods inherited from class java.security.Permission |
checkGuard, getName, newPermissionCollection, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ServicePermission(java.lang.String target,
java.lang.String action)
target - Permission target, e.g a service url or "*"action - Parmission action, e.g. any or all of "get,start,stop,status"| Method Detail |
public java.lang.String getActions()
getActions in class java.security.Permissionpublic boolean implies(java.security.Permission perm)
implies in class java.security.Permissionpublic boolean equals(java.lang.Object obj)
equals in class java.security.Permissionpublic int hashCode()
hashCode in class java.security.Permission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||