public class KeyStoreFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean
FactoryBean implementation
which makes it possible to configure KeyStore instances
using Spring.| Constructor and Description |
|---|
KeyStoreFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
createInstance()
Creates a new
KeyStore. |
java.lang.Class |
getObjectType() |
void |
setFile(java.io.File file)
Sets the file which contains the key store.
|
void |
setPassword(java.lang.String password)
Sets the key store password.
|
void |
setProvider(java.lang.String provider)
Sets the name of the provider to use when creating the key store.
|
void |
setResource(org.springframework.core.io.Resource resource)
Sets a Spring
Resource which contains the key store. |
void |
setType(java.lang.String type)
Sets the type of key store to create.
|
protected java.lang.Object createInstance()
throws java.lang.Exception
KeyStore. This method will be called
by the base class when Spring creates a bean using this FactoryBean.createInstance in class org.springframework.beans.factory.config.AbstractFactoryBeanKeyStore instance.java.lang.Exceptionpublic java.lang.Class getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeangetObjectType in class org.springframework.beans.factory.config.AbstractFactoryBeanpublic void setFile(java.io.File file)
setProvider(String) have to be set.file - the file to load the key store from.public void setPassword(java.lang.String password)
null no
password will be used to check the integrity of the key store.password - the password or null if no password is
needed.public void setProvider(java.lang.String provider)
provider - the name of the provider, e.g. SUN.public void setResource(org.springframework.core.io.Resource resource)
Resource which contains the key store. Either this
property or setFile(File) have to be set.resource - the resource to load the key store from.public void setType(java.lang.String type)
type - the type to use when creating the key store.java.lang.IllegalArgumentException - if the specified value is
null.