org.apache.ws.security.saml
Class SAMLIssuerFactory

java.lang.Object
  extended byorg.apache.ws.security.saml.SAMLIssuerFactory

public abstract class SAMLIssuerFactory
extends java.lang.Object

CryptoFactory.

Author:
Davanum Srinivas ([email protected]).

Constructor Summary
SAMLIssuerFactory()
           
 
Method Summary
static SAMLIssuer getInstance()
          getInstance

Returns an instance of SAMLIssuer.

static SAMLIssuer getInstance(java.lang.String propFilename)
          getInstance

Returns an instance of SAMLIssuer.

static SAMLIssuer getInstance(java.lang.String samlClassName, java.util.Properties properties)
          getInstance

Returns an instance of SAMLIssuer.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLIssuerFactory

public SAMLIssuerFactory()
Method Detail

getInstance

public static SAMLIssuer getInstance()
getInstance

Returns an instance of SAMLIssuer. This method uses the file saml.properties to determine which implementation to use. Thus the property org.apache.ws.security.saml.issuerClass must define the classname of the SAMLIssuer implementation. The file may contain other property definitions as well. These properties are handed over to the SAMLIssuer implementation. The file saml.properties is loaded with the Loader.getResource() method.

Returns:
The SAMLIssuer implementation was defined

getInstance

public static SAMLIssuer getInstance(java.lang.String samlClassName,
                                     java.util.Properties properties)
getInstance

Returns an instance of SAMLIssuer. The properties are handed over the the SAMLIssuer implementation. The porperties can be null. It is depenend on the SAMLIssuer implementation how the initialization is done in this case.

Parameters:
samlClassName - This is the SAMLIssuer implementation class. No default is provided here.
properties - The Properties that are forwarded to the SAMLIssuer implementaion. These properties are dependend on the SAMLIssuer implementatin
Returns:
The SAMLIssuer implementation or null if no samlClassName was defined

getInstance

public static SAMLIssuer getInstance(java.lang.String propFilename)
getInstance

Returns an instance of SAMLIssuer. This method uses the specifed filename to load a property file. This file shall use the property org.apache.ws.security.saml.issuerClass to define the classname of the SAMLIssuer implementation. The file may contain other property definitions as well. These properties are handed over to the SAMLIssuer implementation. The specified file is loaded with the Loader.getResource() method.

Parameters:
propFilename - The name of the property file to load
Returns:
The SAMLIssuer implementation that was defined


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.