org.opensaml
Class Configuration

java.lang.Object
  extended by org.opensaml.xml.Configuration
      extended by org.opensaml.Configuration

public class Configuration
extends Configuration

OpenSAML configuration singleton. The library must be initialized with a set of configurations prior to usage. This is often done by invoking DefaultBootstrap.bootstrap() but may done in any manner so long as all the needed object providers and artifact factory are created and registered with the configuration.


Field Summary
private static org.joda.time.format.DateTimeFormatter dateFormatter
          Formatter used to write dates.
private static String defaultDateFormat
          Date format in SAML object, default is yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
private static SAML1ArtifactBuilderFactory saml1ArtifactBuilderFactory
          SAML 1 Artifact factory.
private static SAML2ArtifactBuilderFactory saml2ArtifactBuilderFactory
          SAML 2 Artifact factory.
 
Constructor Summary
Configuration()
           
 
Method Summary
static SAML1ArtifactBuilderFactory getSAML1ArtifactBuilderFactory()
          Gets the artifact factory for the library.
static SAML2ArtifactBuilderFactory getSAML2ArtifactBuilderFactory()
          Gets the artifact factory for the library.
static org.joda.time.format.DateTimeFormatter getSAMLDateFormatter()
          Gets the date format used to string'ify SAML's DateTime objects.
static void setSAML1ArtifactBuilderFactory(SAML1ArtifactBuilderFactory factory)
          Sets the artifact factory for the library.
static void setSAML2ArtifactBuilderFactory(SAML2ArtifactBuilderFactory factory)
          Sets the artifact factory for the library.
static void setSAMLDateFormat(String format)
          Sets the date format used to string'ify SAML's date/time objects.
 
Methods inherited from class org.opensaml.xml.Configuration
deregisterIDAttribute, deregisterObjectProvider, deregisterValidatorSuite, getBuilderFactory, getDefaultProviderQName, getGlobalSecurityConfiguration, getMarshallerFactory, getObjectProviderConfiguration, getParserPool, getUnmarshallerFactory, getValidatorSuite, getValidatorSuiteConfiguration, isIDAttribute, registerIDAttribute, registerObjectProvider, registerObjectProvider, registerValidatorSuite, registerValidatorSuite, setGlobalSecurityConfiguration, setParserPool, validateJCEProviders, validateNonSunJAXP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultDateFormat

private static String defaultDateFormat
Date format in SAML object, default is yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.


dateFormatter

private static org.joda.time.format.DateTimeFormatter dateFormatter
Formatter used to write dates.


saml1ArtifactBuilderFactory

private static SAML1ArtifactBuilderFactory saml1ArtifactBuilderFactory
SAML 1 Artifact factory.


saml2ArtifactBuilderFactory

private static SAML2ArtifactBuilderFactory saml2ArtifactBuilderFactory
SAML 2 Artifact factory.

Constructor Detail

Configuration

public Configuration()
Method Detail

getSAMLDateFormatter

public static org.joda.time.format.DateTimeFormatter getSAMLDateFormatter()
Gets the date format used to string'ify SAML's DateTime objects.

Returns:
date format used to string'ify date objects

setSAMLDateFormat

public static void setSAMLDateFormat(String format)
Sets the date format used to string'ify SAML's date/time objects. See the SimpleDateFormat documentation for format syntax.

Parameters:
format - date format used to string'ify date objects

getSAML1ArtifactBuilderFactory

public static SAML1ArtifactBuilderFactory getSAML1ArtifactBuilderFactory()
Gets the artifact factory for the library.

Returns:
artifact factory for the library

setSAML1ArtifactBuilderFactory

public static void setSAML1ArtifactBuilderFactory(SAML1ArtifactBuilderFactory factory)
Sets the artifact factory for the library.

Parameters:
factory - artifact factory for the library

getSAML2ArtifactBuilderFactory

public static SAML2ArtifactBuilderFactory getSAML2ArtifactBuilderFactory()
Gets the artifact factory for the library.

Returns:
artifact factory for the library

setSAML2ArtifactBuilderFactory

public static void setSAML2ArtifactBuilderFactory(SAML2ArtifactBuilderFactory factory)
Sets the artifact factory for the library.

Parameters:
factory - artifact factory for the library


Copyright © 1999-2012. All Rights Reserved.