Class KeyStoreFactoryBean
java.lang.Object
org.springframework.ws.soap.security.support.KeyStoreFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<KeyStore>
,org.springframework.beans.factory.InitializingBean
public class KeyStoreFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<KeyStore>, org.springframework.beans.factory.InitializingBean
Spring factory bean for a
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.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
boolean
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
Sets the type of theKeyStore
to use.
-
Constructor Details
-
KeyStoreFactoryBean
public KeyStoreFactoryBean()
-
-
Method Details
-
setLocation
public void setLocation(org.springframework.core.io.Resource location) Sets the location of the key store to use. If this is not set, a new, empty key store will be used. -
setPassword
Sets the password to use for integrity checking. If this property is not set, then integrity checking is not performed. -
setProvider
Sets the provider of the key store to use. If this is not set, the default is used. -
setType
Sets the type of theKeyStore
to use. If this is not set, the default is used.- See Also:
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<KeyStore>
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<KeyStore>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<KeyStore>
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
GeneralSecurityException
IOException
-