|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.components.crypto.CryptoFactory
CryptoFactory.
Constructor Summary | |
CryptoFactory()
|
Method Summary | |
static Crypto |
getInstance()
getInstance Returns an instance of Crypto. |
static Crypto |
getInstance(java.lang.String propFilename)
getInstance Returns an instance of Crypto. |
static Crypto |
getInstance(java.lang.String propFilename,
java.lang.ClassLoader customClassLoader)
|
static Crypto |
getInstance(java.lang.String cryptoClassName,
java.util.Properties properties)
getInstance Returns an instance of Crypto. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CryptoFactory()
Method Detail |
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(java.lang.String cryptoClassName, java.util.Properties properties)
null
. It is depenend 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 implementaion.
These properties are dependend on the crypto implementatin
public static Crypto getInstance(java.lang.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 load
public static Crypto getInstance(java.lang.String propFilename, java.lang.ClassLoader customClassLoader)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |