| org.ow2.easybeans.security.jacc.provider.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 within the providerand its state is "inService", false otherwise. throws: SecurityException - when called by an AccessControlContext that hasnot been granted the "setPolicy" SecurityPermission. throws: PolicyContextException - if the implementation throws a checkedexception that has not been accounted for by the inService methodsignature. |
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 willnot 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 that hasnot 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 thrown bythe implementation class will be encapsulated (duringconstruction) 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 within the providerand its state is "inService", false otherwise. throws: SecurityException - when called by an AccessControlContext that hasnot been granted the "setPolicy" SecurityPermission. throws: PolicyContextException - if the implementation throws a checkedexception that has not been accounted for by the inService methodsignature. The exception thrown by the implementation class willbe encapsulated (during construction) in the thrownPolicyContextException. |
|
|