|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.xml.Configuration
public class Configuration
Class for loading library configuration files and retrieving the configured components.
Constructor Summary | |
---|---|
protected |
Configuration()
Constructor. |
Method Summary | |
---|---|
static void |
deregisterIDAttribute(javax.xml.namespace.QName attributeName)
Deregister an attribute as having a type of ID. |
static void |
deregisterObjectProvider(javax.xml.namespace.QName key)
Removes the builder, marshaller, and unmarshaller registered to the given key. |
static void |
deregisterValidatorSuite(java.lang.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 javax.xml.namespace.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. |
static MarshallerFactory |
getMarshallerFactory()
Gets the XMLObject marshaller factory that has been configured with information from loaded configuration files. |
static org.w3c.dom.Element |
getObjectProviderConfiguration(javax.xml.namespace.QName qualifedName)
Gets a clone of the configuration element for a qualified element. |
static UnmarshallerFactory |
getUnmarshallerFactory()
Gets the XMLObject unmarshaller factory that has been configured with information from loaded configuration files. |
static ValidatorSuite |
getValidatorSuite(java.lang.String suiteId)
Gets a configured ValidatorSuite by its ID. |
static org.w3c.dom.Element |
getValidatorSuiteConfiguration(java.lang.String suiteId)
Gets a clone of the ValidatorSuite configuration element for the ID. |
static boolean |
isIDAttribute(javax.xml.namespace.QName attributeName)
Determine whether a given attribute is registered as having an ID type. |
static void |
registerIDAttribute(javax.xml.namespace.QName attributeName)
Register an attribute as having a type of ID. |
static void |
registerObjectProvider(javax.xml.namespace.QName providerName,
XMLObjectBuilder builder,
Marshaller marshaller,
Unmarshaller unmarshaller,
org.w3c.dom.Element configuration)
Adds an object provider to this configuration. |
static void |
registerValidatorSuite(java.lang.String suiteId,
ValidatorSuite suite,
org.w3c.dom.Element configuration)
Registers a configured validator suite. |
static void |
setGlobalSecurityConfiguration(SecurityConfiguration config)
Set the global security configuration. |
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 |
Constructor Detail |
---|
protected Configuration()
Method Detail |
---|
public static javax.xml.namespace.QName getDefaultProviderQName()
public static void registerObjectProvider(javax.xml.namespace.QName providerName, XMLObjectBuilder builder, Marshaller marshaller, Unmarshaller unmarshaller, org.w3c.dom.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 void deregisterObjectProvider(javax.xml.namespace.QName key)
key
- the key of the builder, marshaller, and unmarshaller to be removedpublic static org.w3c.dom.Element getObjectProviderConfiguration(javax.xml.namespace.QName qualifedName)
qualifedName
- the namespace qualifed element name of the schema type of the object provider
public static XMLObjectBuilderFactory getBuilderFactory()
public static MarshallerFactory getMarshallerFactory()
public static UnmarshallerFactory getUnmarshallerFactory()
public static void registerValidatorSuite(java.lang.String suiteId, ValidatorSuite suite, org.w3c.dom.Element configuration)
suiteId
- the ID of the suitesuite
- the configured suiteconfiguration
- optional XML configuration informationpublic static void deregisterValidatorSuite(java.lang.String suiteId)
suiteId
- the ID of the suitepublic static org.w3c.dom.Element getValidatorSuiteConfiguration(java.lang.String suiteId)
suiteId
- the ID of the ValidatorSuite whose configuration is to be retrieved
public static ValidatorSuite getValidatorSuite(java.lang.String suiteId)
suiteId
- the suite's ID
public static void registerIDAttribute(javax.xml.namespace.QName attributeName)
attributeName
- the QName of the ID attribute to be registeredpublic static void deregisterIDAttribute(javax.xml.namespace.QName attributeName)
attributeName
- the QName of the ID attribute to be de-registeredpublic static boolean isIDAttribute(javax.xml.namespace.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |