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

List of all members.

Public Member Functions

 JPolicyWrapper ()
void refresh ()
PermissionCollection getPermissions (CodeSource codesource)
PermissionCollection getPermissions (ProtectionDomain domain)
boolean implies (ProtectionDomain domain, Permission permission)

Detailed Description

Wrapper to the JPolicy class. This is used to instantiate the real Policy object by using Thread classloader.
Author:
Florent Benoit

Definition at line 41 of file JPolicyWrapper.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.security.jacc.JPolicyWrapper.JPolicyWrapper  ) 
 

Default constructor

Definition at line 57 of file JPolicyWrapper.java.


Member Function Documentation

PermissionCollection org.objectweb.jonas_lib.security.jacc.JPolicyWrapper.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 given domain on which retrieve permissions
Returns:
permissions

Definition at line 95 of file JPolicyWrapper.java.

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

Parameters:
codesource the given codesource on which retrieve permissions
Returns:
permissions

Definition at line 84 of file JPolicyWrapper.java.

boolean org.objectweb.jonas_lib.security.jacc.JPolicyWrapper.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 107 of file JPolicyWrapper.java.

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

Refreshes/reloads the policy configuration.

Definition at line 73 of file JPolicyWrapper.java.


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