public class KeyStoreFactoryBean extends java.lang.Object implements FactoryBean<java.security.KeyStore>
KeyStore from a file or URI.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TYPE
Default keystore type, "JCEKS".
|
private java.lang.String |
password
Keystore password.
|
private Resource |
resource
Resource that provides encoded keystore data.
|
private java.lang.String |
type
Keystore type, e.g.
|
| Constructor and Description |
|---|
KeyStoreFactoryBean()
Creates a new instance.
|
KeyStoreFactoryBean(Resource resource,
java.lang.String type,
java.lang.String password)
Creates a new instance by specifying all properties.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
getResource() |
java.lang.String |
getType() |
java.security.KeyStore |
newInstance() |
void |
setPassword(java.lang.String password)
Sets the keystore password required to decrypt an encrypted keystore.
|
void |
setResource(Resource resource)
Sets the resource that provides encoded keystore data.
|
void |
setType(java.lang.String type)
Sets the keystore type.
|
public static final java.lang.String DEFAULT_TYPE
private java.lang.String type
private Resource resource
private java.lang.String password
public KeyStoreFactoryBean()
public KeyStoreFactoryBean(Resource resource, java.lang.String type, java.lang.String password)
resource - Resource containing encoded keystore data.type - Keystore type, e.g. JCEKS.password - Password used to decrypt key entry in keystore.public java.lang.String getType()
public void setType(java.lang.String type)
type - JCEKS (default), JKS, PKCS12, or BKS. NOTE: BKS type is supported only when BC
provider is installed.public Resource getResource()
public void setResource(Resource resource)
resource - Keystore resource.public void setPassword(java.lang.String password)
password - Keystore password.public java.security.KeyStore newInstance()
newInstance in interface FactoryBean<java.security.KeyStore>