org.opensaml
Class DefaultBootstrap

java.lang.Object
  extended by org.opensaml.DefaultBootstrap

public class DefaultBootstrap
extends java.lang.Object

This class can be used to bootstrap the OpenSAML library with the default configurations that ship with the library.


Constructor Summary
protected DefaultBootstrap()
          Constrcutor.
 
Method Summary
static void bootstrap()
          Initializes the OpenSAML library, loading default configurations.
protected static void initializeArtifactFactory()
          Initializes the SAMLArtifactFactory.
protected static void initializeVelocity()
          Intializes the Apache Velocity template engine.
protected static void initializeXMLSecurity()
          Initializes the Apache XMLSecurity libary.
protected static void initializeXMLTooling(java.lang.String[] providerConfigs)
          Initializes the XMLTooling library with a default set of object providers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBootstrap

protected DefaultBootstrap()
Constrcutor.

Method Detail

bootstrap

public static void bootstrap()
                      throws ConfigurationException
Initializes the OpenSAML library, loading default configurations.

Throws:
ConfigurationException - thrown if there is a problem initializing the OpenSAML library

initializeXMLSecurity

protected static void initializeXMLSecurity()
                                     throws ConfigurationException
Initializes the Apache XMLSecurity libary.

Throws:
ConfigurationException - thrown is there is a problem initializing the library

initializeVelocity

protected static void initializeVelocity()
                                  throws ConfigurationException
Intializes the Apache Velocity template engine.

Throws:
ConfigurationException - thrown if there is a problem initializing Velocity

initializeXMLTooling

protected static void initializeXMLTooling(java.lang.String[] providerConfigs)
                                    throws ConfigurationException
Initializes the XMLTooling library with a default set of object providers.

Parameters:
providerConfigs - list of provider configuration files located on the classpath
Throws:
ConfigurationException - thrown if there is a problem loading the configuration files

initializeArtifactFactory

protected static void initializeArtifactFactory()
                                         throws ConfigurationException
Initializes the SAMLArtifactFactory.

Throws:
ConfigurationException - thrown if there is a problem initializing the artifact factory