public abstract class SAMLIssuerFactory extends Object
Constructor and Description |
---|
SAMLIssuerFactory() |
Modifier and Type | Method and Description |
---|---|
static SAMLIssuer |
getInstance()
getInstance
Returns an instance of SAMLIssuer.
|
static SAMLIssuer |
getInstance(Class<? extends SAMLIssuer> samlClass,
Properties properties)
getInstance
Returns an instance of SAMLIssuer.
|
static SAMLIssuer |
getInstance(String propFilename)
getInstance
Returns an instance of SAMLIssuer.
|
public static SAMLIssuer getInstance() throws WSSecurityException
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.
WSSecurityException
- if there is an error in loading the crypto propertiespublic static SAMLIssuer getInstance(Class<? extends SAMLIssuer> samlClass, Properties properties) throws WSSecurityException
null
. It is dependent on the
SAMLIssuer implementation how the initialization is done in this case.
samlClass
- This is the SAMLIssuer implementation class. No default is
provided here.properties
- The Properties that are forwarded to the SAMLIssuer implementation.
These properties are dependent on the SAMLIssuer implementationWSSecurityException
- if there is an error in loading the crypto propertiespublic static SAMLIssuer getInstance(String propFilename) throws WSSecurityException
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.
propFilename
- The name of the property file to loadWSSecurityException
- if there is an error in loading the crypto propertiesCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.