public abstract class CryptoFactory extends Object
Constructor and Description |
---|
CryptoFactory() |
Modifier and Type | Method and Description |
---|---|
static Crypto |
getInstance()
getInstance
Returns an instance of Crypto.
|
static Crypto |
getInstance(Properties properties)
getInstance
Returns an instance of Crypto.
|
static Crypto |
getInstance(Properties properties,
ClassLoader classLoader)
getInstance
Returns an instance of Crypto loaded with the given classloader.
|
static Crypto |
getInstance(String propFilename)
getInstance
Returns an instance of Crypto.
|
static Crypto |
getInstance(String propFilename,
ClassLoader customClassLoader) |
static Crypto |
getInstance(String cryptoClassName,
Map map)
getInstance
Returns an instance of Crypto.
|
static Crypto |
getInstance(String cryptoClassName,
Properties properties)
Deprecated.
use @link{#getInstance(java.lang.String, java.util.Map)} instead.
|
public static Crypto getInstance()
crypto.properties
to determine which implementation to
use. Thus the property org.apache.ws.security.crypto.provider
must define the classname of the Crypto implementation. The file
may contain other property definitions as well. These properties are
handed over to the Crypto implementation. The file
crypto.properties
is loaded with the
Loader.getResource()
method.
public static Crypto getInstance(Properties properties)
properties
- The Properties that are forwarded to the crypto implementation
and the Crypto impl class name.
These properties are dependent on the crypto implementationpublic static Crypto getInstance(Properties properties, ClassLoader classLoader)
properties
- The Properties that are forwarded to the crypto implementation
and the Crypto impl class name.
These properties are dependent on the crypto implementationclassLoader
- The class loader to usepublic static Crypto getInstance(String cryptoClassName, Properties properties)
null
. It is dependent on the
Crypto implementation how the initialization is done in this case.
cryptoClassName
- This is the crypto implementation class. No default is
provided here.properties
- The Properties that are forwarded to the crypto implementation.
These properties are dependent on the crypto implementationpublic static Crypto getInstance(String cryptoClassName, Map map)
null
. It is dependent on the
Crypto implementation how the initialization is done in this case.
cryptoClassName
- This is the crypto implementation class. No default is
provided here.map
- The Maps that is forwarded to the crypto implementation.
These contents of the map are dependent on the
underlying crypto implementation specified in the
cryptoClassName parameter.public static Crypto getInstance(String propFilename)
org.apache.ws.security.crypto.provider
to define the classname of the Crypto implementation. The file
may contain other property definitions as well. These properties are
handed over to the Crypto implementation. The specified file
is loaded with the Loader.getResource()
method.
propFilename
- The name of the property file to loadpublic static Crypto getInstance(String propFilename, ClassLoader customClassLoader)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.