|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.qos.logback.core.net.ssl.KeyStoreFactoryBean
public class KeyStoreFactoryBean
A factory bean for a JCA KeyStore.
This object holds the configurable properties of a key store and uses
them to create and load a KeyStore instance.
| Constructor Summary | |
|---|---|
KeyStoreFactoryBean()
|
|
| Method Summary | |
|---|---|
KeyStore |
createKeyStore()
Creates a new KeyStore using the receiver's configuration. |
String |
getLocation()
Gets the location of the key store resource. |
String |
getPassword()
Gets the password to use to access the key store. |
String |
getProvider()
Gets the JCA key store provider name. |
String |
getType()
Gets the type of key store to load. |
void |
setLocation(String location)
Sets the location of the key store resource. |
void |
setPassword(String password)
Sets the password to use to access the keystore. |
void |
setProvider(String provider)
Sets the JCA key store provider name. |
void |
setType(String type)
Sets the type of key store to load. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyStoreFactoryBean()
| Method Detail |
|---|
public KeyStore createKeyStore()
throws NoSuchProviderException,
NoSuchAlgorithmException,
KeyStoreException
KeyStore using the receiver's configuration.
NoSuchProviderException - if the provider specified by
setProvider(String) is not known to the platform
NoSuchAlgorithmException - if the key store type specified by
setType(String) is not known to the specified provider
(or the platform's default provider if the provider isn't specified)
KeyStoreException - if some other error occurs in loading
the key store from the resource specified by
setLocation(String)public String getLocation()
public void setLocation(String location)
location - a String containing a URL for the resource; if the
URL string isn't prefixed by a scheme, the path is assumed to be
relative to the root of the classpath.public String getType()
JKS); the
SSL.DEFAULT_KEYSTORE_TYPE is returned if no type has been configuredpublic void setType(String type)
type - a key store type name (e.g. JKS, PKCS12);
the type specified must be supported by the provider specified by
setProvider(String) or by the platform's default provider
if no provider is specifiedpublic String getProvider()
null if no provider has been configuredpublic void setProvider(String provider)
provider - name of the JCA provider to utilize in creating the
key storepublic String getPassword()
SSL.DEFAULT_KEYSTORE_PASSWORD is returned
if no password has been configuredpublic void setPassword(String password)
password - the password to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||