|
||||||||||
| 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.util.ThreadScopePermission
This permission is used to limit the access to the ThreadScope.
Any attempt to use the thread scope without it will fail.
This permission takes an empty tager and can handle four different actions:
"enter, exit, current, clear"
The action guard the use of the methods with their name on the ThreadScope. Usually
a service is granted the following permission when loaded:
net.larsan.norna.util.ThreadScopePermission "", "enter,exit,current";
The action can be specified as "*" for a blanket permission.
ThreadScope,
Serialized Form| Constructor Summary | |
ThreadScopePermission(java.lang.String action)
Create permission without a target. |
|
ThreadScopePermission(java.lang.String target,
java.lang.String action)
Create permission. |
|
| 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 ThreadScopePermission(java.lang.String target,
java.lang.String action)
ThreadScope the permission is about.
target - Target for the permission, not usedaction - Permitted method, e.g. enter, exit, clear or current, or "*" for blanket permissionpublic ThreadScopePermission(java.lang.String action)
ThreadScope the permission is about.
action - Permitted method, e.g. enter, exit, clear or current, or "*" for blanket permission| Method Detail |
public boolean implies(java.security.Permission perm)
implies in class java.security.Permissionpublic java.lang.String getActions()
getActions 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 | |||||||||