|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Policy
org.ow2.jonas.lib.security.jacc.JPolicyWrapper
public class 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 | |
|---|---|
PermissionCollection |
getPermissions(CodeSource codesource)
Evaluates the global policy and returns a PermissionCollection object specifying the set of permissions allowed given the characteristics of the protection domain. |
PermissionCollection |
getPermissions(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(ProtectionDomain domain,
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()
refresh in class Policypublic PermissionCollection getPermissions(CodeSource codesource)
getPermissions in class Policycodesource - the given codesource on which retrieve permissions
public PermissionCollection getPermissions(ProtectionDomain domain)
getPermissions in class Policydomain - the given domain on which retrieve permissions
public boolean implies(ProtectionDomain domain,
Permission permission)
implies in class Policydomain - 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 | |||||||||