public class KeyStoreFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<KeyStore>, org.springframework.beans.factory.InitializingBean
KeyStore.
To load an existing key store, you must set the location property. If this property is not set, a new,
empty key store is created, which is most likely not what you want.
setLocation(org.springframework.core.io.Resource),
KeyStore| Constructor and Description |
|---|
KeyStoreFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
KeyStore |
getObject() |
Class<KeyStore> |
getObjectType() |
boolean |
isSingleton() |
void |
setLocation(org.springframework.core.io.Resource location)
Sets the location of the key store to use.
|
void |
setPassword(String password)
Sets the password to use for integrity checking.
|
void |
setProvider(String provider)
Sets the provider of the key store to use.
|
void |
setType(String type)
Sets the type of the
KeyStore to use. |
public void setLocation(org.springframework.core.io.Resource location)
public void setPassword(String password)
public void setProvider(String provider)
public void setType(String type)
KeyStore to use. If this is not set, the default is used.KeyStore.getDefaultType()public KeyStore getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<KeyStore>public Class<KeyStore> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<KeyStore>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<KeyStore>public final void afterPropertiesSet()
throws GeneralSecurityException,
IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanGeneralSecurityExceptionIOException