|
||||||||||
| 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.PackagePermission
The package permission for importing/exporting packages. The Norna framework supports the notion of 'exporting' packages to make them available to other services from different class loaders. This permission is used by the class loaders to make sure no service is able to import or export packages they do not explicitly have declared.
This permission have three different actions:
export import loadAll targets takes a package or a '*' for a blanket permission. It is also possible to set a target for a package including all subpackages by using a trailing '-' such as:
net.larsan.norna.base.PackagePermission "urd.test.-", "export"The permission above would allow the caller to export any class in the "urd.test" package but also any subpackages such as 'urd.test.impl'.
Normally a service will have a blanket permission for exporting and importing which covers those classes explicitly named in the service manifest for exporting or importing.
| Constructor Summary | |
PackagePermission(java.lang.String target,
java.lang.String actions)
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 PackagePermission(java.lang.String target,
java.lang.String actions)
target - Permission target, e.g package name, or "*" for all packagesactions - Parmission action, e.g. "export,import,load", or "*" for blanket permission| 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 | |||||||||