public abstract class PolicyConfigurationFactory extends Object
Constructor and Description |
---|
PolicyConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
abstract 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.
|
static PolicyConfigurationFactory |
getPolicyConfigurationFactory()
This static method uses the javax.security.jacc.PolicyConfigurationFactory.provider
system property to create a provider factory implementation.
|
abstract boolean |
inService(String contextID)
This method determines if the identified policy context exists with state
"inService" in the Policy provider associated with the factory.
|
public static PolicyConfigurationFactory getPolicyConfigurationFactory() throws ClassNotFoundException, PolicyContextException
SecurityException
- - when the caller does not have a
SecurityPermission(setPolicy) permission.ClassNotFoundException
- - when the class named by the system
property could not be found or because the value of the system
property is null.PolicyContextException
- - if the PolicyConfigurationFactory ctor
throws an exception other than those in the getPolicyConfigurationFactory
method signature. The exception will be encapsulated in a
PolicyContextException as its cause.public abstract PolicyConfiguration getPolicyConfiguration(String contextID, boolean remove) throws PolicyContextException
contextID
- - the policy context ID indicates which
PolicyConfiguration to return. This must not be null.remove
- - A boolean flag 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.PolicyContextException
public abstract boolean inService(String contextID) throws PolicyContextException
contextID
- - the context ID for selecting the policyPolicyContextException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.