|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.Configuration
public class Configuration
Class for loading library configuration files and retrieving the configured components.
Field Summary | |
---|---|
private static XMLObjectBuilderFactory |
builderFactory
Configured XMLObject builder factory. |
private static Map<QName,Element> |
configuredObjectProviders
Object provider configuration elements indexed by QName. |
private static QName |
defaultProvider
Default object provider. |
private static SecurityConfiguration |
globalSecurityConfig
Configured global security configuration information. |
private static Set<QName> |
idAttributeNames
Configured set of attribute QNames which have been globally registered as having an ID type. |
private static MarshallerFactory |
marshallerFactory
Configured XMLObject marshaller factory. |
private static ParserPool |
parserPool
Configured parser pool. |
private static UnmarshallerFactory |
unmarshallerFactory
Configured XMLObject unmarshaller factory. |
private static Map<String,Element> |
validatorSuiteConfigurations
Validator suite configuration elements indexed by suite IDs. |
private static Map<String,ValidatorSuite> |
validatorSuites
Configured ValidatorSuites. |
Constructor Summary | |
---|---|
protected |
Configuration()
Constructor. |
Method Summary | |
---|---|
static void |
deregisterIDAttribute(QName attributeName)
Deregister an attribute as having a type of ID. |
static void |
deregisterObjectProvider(QName key)
Removes the builder, marshaller, and unmarshaller registered to the given key. |
static void |
deregisterValidatorSuite(String suiteId)
Removes a registered validator suite. |
static XMLObjectBuilderFactory |
getBuilderFactory()
Gets the XMLObject builder factory that has been configured with information from loaded configuration files. |
static QName |
getDefaultProviderQName()
Gets the QName for the object provider that will be used for XMLObjects that do not have a registered object provider. |
static SecurityConfiguration |
getGlobalSecurityConfiguration()
Get the global security configuration. |
private static Logger |
getLogger()
Get an SLF4J Logger. |
static MarshallerFactory |
getMarshallerFactory()
Gets the XMLObject marshaller factory that has been configured with information from loaded configuration files. |
static Element |
getObjectProviderConfiguration(QName qualifedName)
Deprecated. this method is deprecated with no replacement |
static ParserPool |
getParserPool()
Get the currently configured ParserPool instance. |
static UnmarshallerFactory |
getUnmarshallerFactory()
Gets the XMLObject unmarshaller factory that has been configured with information from loaded configuration files. |
static ValidatorSuite |
getValidatorSuite(String suiteId)
Gets a configured ValidatorSuite by its ID. |
static Element |
getValidatorSuiteConfiguration(String suiteId)
Deprecated. this method is deprecated with no replacement |
static boolean |
isIDAttribute(QName attributeName)
Determine whether a given attribute is registered as having an ID type. |
static void |
registerIDAttribute(QName attributeName)
Register an attribute as having a type of ID. |
static void |
registerObjectProvider(QName providerName,
XMLObjectBuilder builder,
Marshaller marshaller,
Unmarshaller unmarshaller)
Adds an object provider to this configuration. |
static void |
registerObjectProvider(QName providerName,
XMLObjectBuilder builder,
Marshaller marshaller,
Unmarshaller unmarshaller,
Element configuration)
Deprecated. this method is deprecated with no replacement |
static void |
registerValidatorSuite(String suiteId,
ValidatorSuite suite)
Registers a configured validator suite. |
static void |
registerValidatorSuite(String suiteId,
ValidatorSuite suite,
Element configuration)
Deprecated. this method is deprecated with no replacement |
static void |
setGlobalSecurityConfiguration(SecurityConfiguration config)
Set the global security configuration. |
static void |
setParserPool(ParserPool newParserPool)
Set the currently configured ParserPool instance. |
static boolean |
validateJCEProviders()
Validates that the set of security providers configured in the JVM supports required cryptographic capabilities, for example for the XML Encryption and XML Signature specifications. |
static void |
validateNonSunJAXP()
Validates that the system is not using the horribly buggy Sun JAXP implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static QName defaultProvider
private static Map<QName,Element> configuredObjectProviders
private static Map<String,Element> validatorSuiteConfigurations
private static XMLObjectBuilderFactory builderFactory
private static MarshallerFactory marshallerFactory
private static UnmarshallerFactory unmarshallerFactory
private static Map<String,ValidatorSuite> validatorSuites
private static Set<QName> idAttributeNames
private static SecurityConfiguration globalSecurityConfig
private static ParserPool parserPool
Constructor Detail |
---|
protected Configuration()
Method Detail |
---|
public static ParserPool getParserPool()
public static void setParserPool(ParserPool newParserPool)
newParserPool
- the new ParserPool instance to configurepublic static QName getDefaultProviderQName()
public static void registerObjectProvider(QName providerName, XMLObjectBuilder builder, Marshaller marshaller, Unmarshaller unmarshaller)
providerName
- the name of the object provider, corresponding to the element name or type name that the
builder, marshaller, and unmarshaller operate onbuilder
- the builder for that given providermarshaller
- the marshaller for the providerunmarshaller
- the unmarshaller for the providerpublic static void deregisterObjectProvider(QName key)
key
- the key of the builder, marshaller, and unmarshaller to be removedpublic static XMLObjectBuilderFactory getBuilderFactory()
public static MarshallerFactory getMarshallerFactory()
public static UnmarshallerFactory getUnmarshallerFactory()
public static void registerValidatorSuite(String suiteId, ValidatorSuite suite)
suiteId
- the ID of the suitesuite
- the configured suitepublic static void deregisterValidatorSuite(String suiteId)
suiteId
- the ID of the suitepublic static ValidatorSuite getValidatorSuite(String suiteId)
suiteId
- the suite's ID
public static void registerIDAttribute(QName attributeName)
attributeName
- the QName of the ID attribute to be registeredpublic static void deregisterIDAttribute(QName attributeName)
attributeName
- the QName of the ID attribute to be de-registeredpublic static boolean isIDAttribute(QName attributeName)
attributeName
- the QName of the attribute to be checked for ID type.
public static SecurityConfiguration getGlobalSecurityConfiguration()
public static void setGlobalSecurityConfiguration(SecurityConfiguration config)
config
- the new global security configuration instancepublic static void validateNonSunJAXP()
public static boolean validateJCEProviders()
public static void registerObjectProvider(QName providerName, XMLObjectBuilder builder, Marshaller marshaller, Unmarshaller unmarshaller, Element configuration)
providerName
- the name of the object provider, corresponding to the element name or type name that the
builder, marshaller, and unmarshaller operate onbuilder
- the builder for that given providermarshaller
- the marshaller for the providerunmarshaller
- the unmarshaller for the providerconfiguration
- optional XML configuration snippetpublic static Element getObjectProviderConfiguration(QName qualifedName)
qualifedName
- the namespace qualifed element name of the schema type of the object provider
public static void registerValidatorSuite(String suiteId, ValidatorSuite suite, Element configuration)
suiteId
- the ID of the suitesuite
- the configured suiteconfiguration
- optional XML configuration informationpublic static Element getValidatorSuiteConfiguration(String suiteId)
suiteId
- the ID of the ValidatorSuite whose configuration is to be retrieved
private static Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |