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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Static Public Attributes

final String FACTORY_NAME = "org.objectweb.jonas_lib.security.jacc.JPolicyConfigurationFactory"

Detailed Description

Defines the PolicyConfigurationFactory implementation class of JACC
Author:
Florent Benoit

Definition at line 49 of file JPolicyConfigurationFactory.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.security.jacc.JPolicyConfigurationFactory.JPolicyConfigurationFactory  ) 
 

Constructor

Definition at line 75 of file JPolicyConfigurationFactory.java.


Member Function Documentation

PolicyConfiguration org.objectweb.jonas_lib.security.jacc.JPolicyConfigurationFactory.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 105 of file JPolicyConfigurationFactory.java.

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


Member Data Documentation

final String org.objectweb.jonas_lib.security.jacc.JPolicyConfigurationFactory.FACTORY_NAME = "org.objectweb.jonas_lib.security.jacc.JPolicyConfigurationFactory" [static]
 

Name of the Factory

Definition at line 54 of file JPolicyConfigurationFactory.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