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

List of all members.

Public Member Functions

 PolicyConfigurationFactoryWrapper ()
PolicyConfiguration getPolicyConfiguration (String contextID, boolean remove) throws PolicyContextException, SecurityException
boolean inService (String contextID) throws PolicyContextException, SecurityException

Detailed Description

Defines a wrapper for the PolicyConfigurationFactory Uses a wrapper because JACC provider factory is loaded by abstract Factory with the system classloader. The problem is that System classloader loads only few JOnAS classes. All classes are loaded by JOnAS classloader This wrapper could be removed if the class is no more loaded by System classloader
Author:
Florent Benoit

Definition at line 42 of file PolicyConfigurationFactoryWrapper.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.security.jacc.PolicyConfigurationFactoryWrapper.PolicyConfigurationFactoryWrapper  ) 
 

Update policyConfigurationFactory object for delegating requests

Definition at line 58 of file PolicyConfigurationFactoryWrapper.java.


Member Function Documentation

PolicyConfiguration org.objectweb.jonas_lib.security.jacc.PolicyConfigurationFactoryWrapper.getPolicyConfiguration String  contextID,
boolean  remove
throws PolicyContextException, SecurityException
 

This method is used to obtain an instance of the provider specific class that implements the PolicyConfiguration interface that corresponds to the identified policy context within the provider.

Parameters:
contextID A String identifying the policy context whose PolicyConfiguration interface is to be returned. The value passed to this parameter must not be null.
remove A boolean value that establishes whether or not the policy statements of an existing policy context are to be removed before its PolicyConfiguration object is returned. If the value passed to this parameter is true, the policy statements of an existing policy context will be removed. If the value is false, they will not be removed.
Returns:
an Object that implements the PolicyConfiguration Interface matched to the Policy provider and corresponding to the identified policy context.
Exceptions:
SecurityException when called by an AccessControlContext that has not been granted the "setPolicy" SecurityPermission.
PolicyContextException if the implementation throws a checked exception that has not been accounted for by the getPolicyConfiguration method signature. The exception thrown by the implementation class will be encapsulated (during construction) in the thrown PolicyContextException.

Definition at line 95 of file PolicyConfigurationFactoryWrapper.java.

boolean org.objectweb.jonas_lib.security.jacc.PolicyConfigurationFactoryWrapper.inService String  contextID  )  throws PolicyContextException, SecurityException
 

This method determines if the identified policy context exists with state "inService" in the Policy provider associated with the factory.

Parameters:
contextID A string identifying a policy context
Returns:
true if the identified policy context exists within the provider and its state is "inService", false otherwise.
Exceptions:
SecurityException when called by an AccessControlContext that has not been granted the "setPolicy" SecurityPermission.
PolicyContextException if the implementation throws a checked exception that has not been accounted for by the inService method signature. The exception thrown by the implementation class will be encapsulated (during construction) in the thrown PolicyContextException.

Definition at line 114 of file PolicyConfigurationFactoryWrapper.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