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
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbooleanvoidsetLocation(@Nullable org.springframework.core.io.Resource location) Sets the location of the key store to use.voidsetPassword(@Nullable String password) Sets the password to use for integrity checking.voidsetProvider(String provider) Sets the provider of the key store to use.voidSets the type of theKeyStoreto use.
-
Constructor Details
-
KeyStoreFactoryBean
public KeyStoreFactoryBean()
-
-
Method Details
-
setLocation
public void setLocation(@Nullable 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.- See Also:
-
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 theKeyStoreto use. If this is not set, the default is used.- See Also:
-
getObject
-
getObjectType
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<KeyStore>
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
GeneralSecurityExceptionIOException
-