|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.xacml.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.3.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.
NOTE: The name of this class, its interfaces, and they way it interacts with the rest of the code is currently unstable, so expect some changes between now and the next release.
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 |
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() throws UnknownIdentifierException
UnknownIdentifierException
- if there is no default factorypublic AttributeFactory getAttributeFactory(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedAttributeFactories()
Set
of String
spublic CombiningAlgFactory getDefaultCombiningAlgFactory() throws UnknownIdentifierException
UnknownIdentifierException
- if there is no default factorypublic CombiningAlgFactory getCombiningAlgFactory(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedCombiningAlgFactories()
Set
of String
spublic FunctionFactoryProxy getDefaultFunctionFactoryProxy() throws UnknownIdentifierException
UnknownIdentifierException
- if there is no default factorypublic FunctionFactoryProxy getFunctionFactoryProxy(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedFunctionFactories()
Set
of String
spublic void useDefaultFactories()
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.