org.objectweb.jonas_lib.security.jacc.JPolicy Class Reference

Collaboration diagram for org.objectweb.jonas_lib.security.jacc.JPolicy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JPolicy ()
boolean implies (ProtectionDomain domain, Permission permission)
PermissionCollection getPermissions (ProtectionDomain domain)
PermissionCollection getPermissions (CodeSource codeSource)
void refresh ()

Static Public Member Functions

JPolicy getInstance ()

Detailed Description

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

Author:
Florent Benoit

Definition at line 69 of file JPolicy.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.security.jacc.JPolicy.JPolicy  ) 
 

Constructor : build a policy which manage JACC permissions The non-jacc permissions are delegated to the initial Policy class

Definition at line 103 of file JPolicy.java.

Referenced by org.objectweb.jonas_lib.security.jacc.JPolicy.getInstance().


Member Function Documentation

JPolicy org.objectweb.jonas_lib.security.jacc.JPolicy.getInstance  )  [static]
 

Gets the unique instance of the JACC delegating policy provider

Returns:
unique instance of the JACC delegating policy provider

Definition at line 132 of file JPolicy.java.

References org.objectweb.jonas_lib.security.jacc.JPolicy.JPolicy().

Here is the call graph for this function:

PermissionCollection org.objectweb.jonas_lib.security.jacc.JPolicy.getPermissions CodeSource  codeSource  ) 
 

Evaluates the global policy and returns a PermissionCollection object specifying the set of permissions allowed for code from the specified code source.

Parameters:
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.
Returns:
the set of permissions allowed for code from codesource according to the policy.The returned set of permissions must be a new mutable instance and it must support heterogeneous Permission types.

Definition at line 312 of file JPolicy.java.

PermissionCollection org.objectweb.jonas_lib.security.jacc.JPolicy.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.

Parameters:
domain the ProtectionDomain associated with the caller.
Returns:
the set of permissions allowed for the domain according to the policy.The returned set of permissions must be a new mutable instance and it must support heterogeneous Permission types.

Definition at line 279 of file JPolicy.java.

boolean org.objectweb.jonas_lib.security.jacc.JPolicy.implies ProtectionDomain  domain,
Permission  permission
 

Evaluates the global policy for the permissions granted to the ProtectionDomain and tests whether the permission is granted.

Parameters:
domain the ProtectionDomain to test.
permission the Permission object to be tested for implication.
Returns:
true if "permission" is a proper subset of a permission granted to this ProtectionDomain.

Definition at line 156 of file JPolicy.java.

References org.objectweb.jonas_lib.security.jacc.JPolicyConfiguration.getExcludedPermissions(), org.objectweb.jonas_lib.I18n.getMessage(), and org.objectweb.jonas_lib.security.jacc.JPolicyConfiguration.getUncheckedPermissions().

Here is the call graph for this function:

void org.objectweb.jonas_lib.security.jacc.JPolicy.refresh  ) 
 

Refreshes/reloads the policy configuration.

Definition at line 331 of file JPolicy.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:10 2005 for JOnAS by  doxygen 1.3.9.1