@Deprecated public class PKCS11PrivateKeyFactoryBean extends Object implements FactoryBean<PrivateKey>
PrivateKey from a PKCS#11 keystore.
This relies on the SunPKCS11 provider.| Modifier and Type | Field and Description |
|---|---|
private PrivateKey |
key
Deprecated.
The singleton instance of the private key produced by this factory.
|
private String |
keyAlias
Deprecated.
Alias for the private key.
|
private String |
keyPassword
Deprecated.
Password for the private key.
|
private Logger |
log
Deprecated.
Class logger.
|
private String |
pkcs11Config
Deprecated.
PKCS#11 provider parameter string.
|
private static Provider |
provider
Deprecated.
Singleton
Provider for all instances of this factory. |
private static String |
PROVIDER_CLASS_NAME
Deprecated.
The class name for the PKCS#11 provider class.
|
| Constructor and Description |
|---|
PKCS11PrivateKeyFactoryBean()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyAlias()
Deprecated.
Gets the key alias in use.
|
String |
getKeyPassword()
Deprecated.
Gets the key password in use.
|
private KeyStore |
getKeyStore()
Deprecated.
|
PrivateKey |
getObject()
Deprecated.
|
Class<?> |
getObjectType()
Deprecated.
|
String |
getPkcs11Config()
Deprecated.
Returns the PKCS#11 configuration.
|
private Provider |
getProvider()
Deprecated.
Gets the singleton PKCS#11
Provider. |
boolean |
isSingleton()
Deprecated.
|
void |
setKeyAlias(String alias)
Deprecated.
Sets the key alias to use.
|
void |
setKeyPassword(String password)
Deprecated.
Set the key password to use.
|
void |
setPkcs11Config(String config)
Deprecated.
Sets the PKCS#11 configuration to use.
|
private static final String PROVIDER_CLASS_NAME
private static Provider provider
Provider for all instances of this factory.private final Logger log
private String pkcs11Config
private String keyAlias
private String keyPassword
private PrivateKey key
public String getPkcs11Config()
public void setPkcs11Config(@Nonnull String config)
config - the PKCS#11 configuration to usepublic String getKeyAlias()
public void setKeyAlias(String alias)
alias - the key alias to usepublic String getKeyPassword()
public void setKeyPassword(@Nonnull String password)
password - the key password to usepublic PrivateKey getObject() throws Exception
getObject in interface FactoryBean<PrivateKey>Exception@Nonnull public Class<?> getObjectType()
getObjectType in interface FactoryBean<PrivateKey>public boolean isSingleton()
isSingleton in interface FactoryBean<PrivateKey>Copyright © 1999–2016. All rights reserved.