|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Policy org.objectweb.jonas_lib.security.jacc.JPolicy
public class JPolicy
Defines the "delegating Policy provider" / JACC 2.5 In J2SE 1.4 new methods can be used for dynamic permissions implies() and getPermissions() methods on Policy class were added. A replacement Policy object may accomplish this by delegating non-javax.security.jacc policy decisions to the corresponding default system Policy implementation class. A replacement Policy object that relies in this way on the corresponding default Policy implementation class must identify itself in its installation instructions as a "delegating Policy provider" JOnAS uses delegating model
Constructor Summary | |
---|---|
JPolicy()
Constructor : build a policy which manage JACC permissions The non-jacc permissions are delegated to the initial Policy class |
Method Summary | |
---|---|
static JPolicy |
getInstance()
Gets the unique instance of the JACC delegating policy provider |
java.security.PermissionCollection |
getPermissions(java.security.CodeSource codeSource)
Evaluates the global policy and returns a PermissionCollection object specifying the set of permissions allowed for code from the specified code source. |
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 JPolicy()
Method Detail |
---|
public static JPolicy getInstance()
public boolean implies(java.security.ProtectionDomain domain, java.security.Permission permission)
implies
in class java.security.Policy
domain
- the ProtectionDomain to test.permission
- the Permission object to be tested for implication.
public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain domain)
getPermissions
in class java.security.Policy
domain
- the ProtectionDomain associated with the caller.
public java.security.PermissionCollection getPermissions(java.security.CodeSource codeSource)
getPermissions
in class java.security.Policy
codeSource
- the CodeSource associated with the caller.
This encapsulates the original location of the code
(where the code came from) and the public key(s)
of its signer.
public void refresh()
refresh
in class java.security.Policy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |