| org.objectweb.jonas_lib.security.jacc.JPolicyConfigurationFactory
JPolicyConfigurationFactory | public class JPolicyConfigurationFactory extends PolicyConfigurationFactory (Code) | | Defines the PolicyConfigurationFactory implementation class of JACC
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. |
FACTORY_NAME | final public static String FACTORY_NAME(Code) | | Name of the Factory
|
JPolicyConfigurationFactory | public JPolicyConfigurationFactory()(Code) | | Constructor
|
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. |
|
|