|
||||||||||
| 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.ContextPermission
A context permission works much like a file permissions. Context path URLs are mapped using three actions, namely:
"lookup,bind,unbind" (or "*")This defaut implementation insist that all target paths to be specified relative to the server root. Should multiple servers be involved the given URL must be absolute. So, operating on a single server the following two permissions are not equal even if the're essentially pointing to the same object :
norna://localhost/services/photo/images /services/photo/imagesNote that a path must start with a forward slash or 'norna:' to be valid. The permission uses a hyphen to indicate sub-paths, so that:
/services/photo/images/-implies:
/services/photo/images/football.gif
Context,
Serialized Form| Constructor Summary | |
ContextPermission(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 ContextPermission(java.lang.String target,
java.lang.String action)
target - Permission target, e.g an object pathaction - Parmission action, e.g. any or all of "lookup,bind,unbind"| 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 | |||||||||