public class KeyStoreFactoryBean extends Object implements FactoryBean<KeyStore>
KeyStore
from a file or URI.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TYPE
Default keystore type, "JCEKS".
|
Constructor and Description |
---|
KeyStoreFactoryBean()
Creates a new instance.
|
KeyStoreFactoryBean(Resource resource,
String type,
String password)
Creates a new instance by specifying all properties.
|
Modifier and Type | Method and Description |
---|---|
Resource |
getResource() |
String |
getType() |
KeyStore |
newInstance() |
void |
setPassword(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(String type)
Sets the keystore type.
|
public static final String DEFAULT_TYPE
public KeyStoreFactoryBean()
public KeyStoreFactoryBean(Resource resource, String type, String password)
resource
- Resource containing encoded keystore data.type
- Keystore type, e.g. JCEKS.password
- Password used to decrypt key entry in keystore.public String getType()
public void setType(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(String password)
password
- Keystore password.public KeyStore newInstance()
newInstance
in interface FactoryBean<KeyStore>
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.