public class KeyStoreFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<KeyStore>
FactoryBean
that reads a keystore file.Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.io.Resource |
storeLocation
The resource holding the keystore.
|
protected char[] |
storePassword
The keystore password.
|
protected String |
storeType
The type of keystore.
|
Constructor and Description |
---|
KeyStoreFactoryBean(org.springframework.core.io.Resource storeLocation,
char[] storePassword)
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)
Constructor that takes a resource reference to a keystore file, the password to unlock this file and the store type
("jks", "pkcs12", ...).
|
Modifier and Type | Method and Description |
---|---|
protected KeyStore |
createInstance() |
void |
destroy() |
Class<?> |
getObjectType() |
protected org.springframework.core.io.Resource storeLocation
protected char[] storePassword
protected String storeType
public KeyStoreFactoryBean(org.springframework.core.io.Resource storeLocation, char[] storePassword)
storeLocation
- path to the JKS-filestorePassword
- the password for unlocking the keystorepublic KeyStoreFactoryBean(org.springframework.core.io.Resource storeLocation, char[] storePassword, String storeType)
storeLocation
- path to the keystore filestorePassword
- the password for unlocking the keystorestoreType
- the type of keystoreCopyright © 2018 Litsec AB. All rights reserved.