|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Policy
org.objectweb.jonas_lib.security.jacc.JPolicyWrapper
Wrapper to the JPolicy class. This is used to instantiate the real Policy object by using Thread classloader.
| Constructor Summary | |
JPolicyWrapper()
Default constructor |
|
| Method Summary | |
java.security.PermissionCollection |
getPermissions(java.security.CodeSource codesource)
Evaluates the global policy and returns a PermissionCollection object specifying the set of permissions allowed given the characteristics of the protection domain. |
java.security.PermissionCollection |
getPermissions(java.security.ProtectionDomain domain)
Evaluates the global policy and returns a PermissionCollection object specifying the set of permissions allowed given the characteristics of the protection domain. |
boolean |
implies(java.security.ProtectionDomain domain,
java.security.Permission permission)
Evaluates the global policy for the permissions granted to the ProtectionDomain and tests whether the permission is granted. |
void |
refresh()
Refreshes/reloads the policy configuration. |
| Methods inherited from class java.security.Policy |
getPolicy, setPolicy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JPolicyWrapper()
| Method Detail |
public void refresh()
public java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
codesource - the given codesource on which retrieve permissions
public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain domain)
domain - the given domain on which retrieve permissions
public boolean implies(java.security.ProtectionDomain domain,
java.security.Permission permission)
domain - the ProtectionDomain to test.permission - the Permission object to be tested for implication.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||