| org.objectweb.jonas_lib.security.jacc.PolicyConfigurationFactoryWrapper
PolicyConfigurationFactoryWrapper | public class PolicyConfigurationFactoryWrapper extends PolicyConfigurationFactory (Code) | | 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 |
Method Summary | |
public PolicyConfiguration | getPolicyConfiguration(String contextID, boolean remove) 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 whosePolicyConfiguration interface is to be returned. | public boolean | inService(String contextID) 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 true if the identified policy context exists withinthe provider and its state is "inService", false otherwise. throws: SecurityException - when called by an AccessControlContextthat has not been granted the "setPolicy" SecurityPermission. throws: PolicyContextException - if the implementation throws a checkedexception that has not been accounted for by the inServicemethod signature. |
PolicyConfigurationFactoryWrapper | public PolicyConfigurationFactoryWrapper()(Code) | | Update policyConfigurationFactory object for delegating requests
|
getPolicyConfiguration | public PolicyConfiguration getPolicyConfiguration(String contextID, boolean remove) throws PolicyContextException, SecurityException(Code) | | 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 whosePolicyConfiguration interface is to be returned. The value passedto this parameter must not be null. Parameters: remove - A boolean value that establishes whether or not the policystatements of an existing policy context are to be removed beforeits PolicyConfiguration object is returned. If the value passed tothis parameter is true, the policy statements of an existingpolicy context will be removed. If the value is false,they will not be removed. an Object that implements the PolicyConfiguration Interfacematched to the Policy provider and corresponding to theidentified policy context. throws: SecurityException - when called by an AccessControlContext thathas not been granted the "setPolicy" SecurityPermission. throws: PolicyContextException - if the implementation throws a checkedexception that has not been accounted for by thegetPolicyConfiguration method signature. The exception thrownby the implementation class will be encapsulated(during construction) in the thrown PolicyContextException. |
inService | public boolean inService(String contextID) throws PolicyContextException, SecurityException(Code) | | 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 true if the identified policy context exists withinthe provider and its state is "inService", false otherwise. throws: SecurityException - when called by an AccessControlContextthat has not been granted the "setPolicy" SecurityPermission. throws: PolicyContextException - if the implementation throws a checkedexception that has not been accounted for by the inServicemethod signature. The exception thrown by the implementationclass will be encapsulated (during construction) in the thrownPolicyContextException. |
|
|