Package se.litsec.opensaml.utils.spring
Class KeyStoreFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<KeyStore>
-
- se.litsec.opensaml.utils.spring.KeyStoreFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<KeyStore>,org.springframework.beans.factory.InitializingBean
@Deprecated(forRemoval=true) public class KeyStoreFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<KeyStore>
Deprecated, for removal: This API element is subject to removal in a future version.usese.swedenconnect.security.credential.factory.KeyStoreFactoryBeanfrom the credentials-support library insteadAn implementation of a SpringFactoryBeanthat reads a keystore file.- Author:
- Martin Lindström (martin@litsec.se)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.core.io.ResourcestoreLocationDeprecated, for removal: This API element is subject to removal in a future version.The resource holding the keystore.protected char[]storePasswordDeprecated, for removal: This API element is subject to removal in a future version.The keystore password.protected StringstoreTypeDeprecated, for removal: This API element is subject to removal in a future version.The type of keystore.
-
Constructor Summary
Constructors Constructor Description KeyStoreFactoryBean(org.springframework.core.io.Resource storeLocation, char[] storePassword)Deprecated, for removal: This API element is subject to removal in a future version.Constructor that takes a resource reference to a JKS-file and the password to unlock this file.KeyStoreFactoryBean(org.springframework.core.io.Resource storeLocation, char[] storePassword, String storeType)Deprecated, for removal: This API element is subject to removal in a future version.Constructor that takes a resource reference to a keystore file, the password to unlock this file and the store type ("jks", "pkcs12", ...).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected KeyStorecreateInstance()Deprecated, for removal: This API element is subject to removal in a future version.voiddestroy()Deprecated, for removal: This API element is subject to removal in a future version.Class<?>getObjectType()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
storeLocation
protected org.springframework.core.io.Resource storeLocation
Deprecated, for removal: This API element is subject to removal in a future version.The resource holding the keystore.
-
storePassword
protected char[] storePassword
Deprecated, for removal: This API element is subject to removal in a future version.The keystore password.
-
storeType
protected String storeType
Deprecated, for removal: This API element is subject to removal in a future version.The type of keystore.
-
-
Constructor Detail
-
KeyStoreFactoryBean
public KeyStoreFactoryBean(org.springframework.core.io.Resource storeLocation, char[] storePassword)Deprecated, for removal: This API element is subject to removal in a future version.Constructor that takes a resource reference to a JKS-file and the password to unlock this file.- Parameters:
storeLocation- path to the JKS-filestorePassword- the password for unlocking the keystore
-
KeyStoreFactoryBean
public KeyStoreFactoryBean(org.springframework.core.io.Resource storeLocation, char[] storePassword, String storeType)Deprecated, for removal: This API element is subject to removal in a future version.Constructor that takes a resource reference to a keystore file, the password to unlock this file and the store type ("jks", "pkcs12", ...).- Parameters:
storeLocation- path to the keystore filestorePassword- the password for unlocking the keystorestoreType- the type of keystore
-
-
Method Detail
-
createInstance
protected KeyStore createInstance() throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.
-
getObjectType
public Class<?> getObjectType()
Deprecated, for removal: This API element is subject to removal in a future version.
-
destroy
public void destroy() throws ExceptionDeprecated, for removal: This API element is subject to removal in a future version.
-
-