|
JBoss port of sunxacml 2.0.5-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.xacml.sunxacml.ConfigurationStore
public class ConfigurationStore
This class supports run-time loading of configuration data. It loads the configurations from an XML file that conforms to the configuration schema. By design this class does not get used automatically, nor does it change the state of the system directly. A programmer must choose to support this mechanism in their program, and then must explicitly use loaded elements. This way, the programmer still has full control over their security model, but also has the convenience of re-using a common configuration mechanism. See http://sunxacml.sourceforge.net/schema/config-0.4.xsd for the valid schema.
Note that becuase this doesn't tie directly into the rest of the code, you are still free to design your own run-time configuration mechanisms. This is simply provided as a convenience, and so that all programmers can start from a common point.
Field Summary | |
---|---|
static String |
PDP_CONFIG_PROPERTY
Property used to specify the configuration file. |
Constructor Summary | |
---|---|
ConfigurationStore()
Default constructor. |
|
ConfigurationStore(File configFile)
Constructor that explicitly specifies the configuration file to load. |
Method Summary | |
---|---|
AttributeFactory |
getAttributeFactory(String name)
Returns the attribute factory with the given name. |
CombiningAlgFactory |
getCombiningAlgFactory(String name)
Returns the combiningAlg factory with the given name. |
AttributeFactory |
getDefaultAttributeFactory()
Returns the default attribute factory. |
CombiningAlgFactory |
getDefaultCombiningAlgFactory()
Returns the default combiningAlg factory. |
FunctionFactoryProxy |
getDefaultFunctionFactoryProxy()
Returns the default function factory proxy. |
PDPConfig |
getDefaultPDPConfig()
Returns the default PDP configuration. |
FunctionFactoryProxy |
getFunctionFactoryProxy(String name)
Returns the function factory proxy with the given name. |
PDPConfig |
getPDPConfig(String name)
Returns the PDP configuration with the given name. |
Set |
getSupportedAttributeFactories()
Returns a set of identifiers representing each attribute factory available. |
Set |
getSupportedCombiningAlgFactories()
Returns a set of identifiers representing each combiningAlg factory available. |
Set |
getSupportedFunctionFactories()
Returns a set of identifiers representing each function factory proxy available. |
Set |
getSupportedPDPConfigurations()
Returns a set of identifiers representing each PDP configuration available. |
void |
registerAttributeFactories()
Registers all the supported factories with the given identifiers. |
void |
registerCombiningAlgFactories()
Registers all the supported factories with the given identifiers. |
void |
registerFunctionFactories()
Registers all the supported factories with the given identifiers. |
void |
useDefaultFactories()
Uses the default configuration to re-set the default factories used by the system (attribute, combining algorithm, and function). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PDP_CONFIG_PROPERTY
Constructor Detail |
---|
public ConfigurationStore() throws ParsingException
PDP_CONFIG_PROPERTY
property to load the configuration.
If the property isn't set, if it names a file that can't be accessed,
or if the file is invalid, then an exception is thrown.
ParsingException
- if anything goes wrong during the parsing
of the configuration file, the class loading,
or the factory and pdp setuppublic ConfigurationStore(File configFile) throws ParsingException
ParsingException
- if anything goes wrong during the parsing
of the configuration file, the class loading,
or the factory and pdp setupMethod Detail |
---|
public PDPConfig getDefaultPDPConfig() throws UnknownIdentifierException
UnknownIdentifierException
- if there is no default configpublic PDPConfig getPDPConfig(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedPDPConfigurations()
Set
of String
spublic AttributeFactory getDefaultAttributeFactory()
public AttributeFactory getAttributeFactory(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedAttributeFactories()
Set
of String
spublic void registerAttributeFactories()
public CombiningAlgFactory getDefaultCombiningAlgFactory()
public CombiningAlgFactory getCombiningAlgFactory(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedCombiningAlgFactories()
Set
of String
spublic void registerCombiningAlgFactories()
public FunctionFactoryProxy getDefaultFunctionFactoryProxy()
public FunctionFactoryProxy getFunctionFactoryProxy(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedFunctionFactories()
Set
of String
spublic void registerFunctionFactories()
public void useDefaultFactories()
|
JBoss port of sunxacml 2.0.5-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |