public abstract class KeystoreFactory
extends java.lang.Object
There should be no real reason to replace the default factory implementation, however should use wish to, you should set the the keystore factory class system property with your own KeystoreFactory implementation class. This class should have a no param public constructor.
KEYSTORE_FACTORY_CLASS
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEYSTORE_FACTORY_CLASS
The System Property key that controls the default keystore factory
implementation
|
Constructor and Description |
---|
KeystoreFactory() |
Modifier and Type | Method and Description |
---|---|
abstract KeystoreProxy |
create(KeystoreLocation loc)
Create a KeystoreProxy instance.
|
abstract KeystoreLocation |
create(java.lang.String url)
Create a KeyStoreLocation instance.
|
abstract KeystoreLocation |
create(java.lang.String url,
char[] password)
Create a KeyStoreLocation instance.
|
static KeystoreFactory |
getDefault()
Get the default instance of the factory.
|
public static final java.lang.String KEYSTORE_FACTORY_CLASS
public static KeystoreFactory getDefault()
public abstract KeystoreLocation create(java.lang.String url, char[] password) throws AdaptrisSecurityException
url
- the urlpassword
- the password to access the keystore.AdaptrisSecurityException
- wrapping any underlying exception.create(String)
public abstract KeystoreLocation create(java.lang.String url) throws AdaptrisSecurityException
Valid URLS are in the form
[protocol]://[server]:[port]/[path]?keystoreType=[type]&
keystorePassword=[password]
An example would be http://www.adaptris.com/my.ks?keystoreType=JKS&
keystorePassword=ABCDE
or file://localhost/c:/my.ks?keystoreType=JKS&
keystorePassword=ABCDE
url
- the url that contains the keystore. They keystore is required to
contain all the information (including the password).AdaptrisSecurityException
- wrapping any underlying exception.create(String, char[])
,
KeystoreProxy
public abstract KeystoreProxy create(KeystoreLocation loc) throws AdaptrisSecurityException
loc
- the location of the keystoreAdaptrisSecurityException
- wrapping the underlying exceptionKeystoreLocation