public class PemBasedPrivateKeyFactoryBean extends Object implements FactoryBean<PrivateKey>
KeyPairUtil.decodePrivateKey(byte[])
. Note that this component does not support encrypted private keys; see ResourceBasedPrivateKeyFactoryBean
for encryption support.KeyPairUtil.decodePrivateKey(byte[])
,
ResourceBasedPrivateKeyFactoryBean
Constructor and Description |
---|
PemBasedPrivateKeyFactoryBean()
Creates a new instance.
|
PemBasedPrivateKeyFactoryBean(String pemEncodedKey)
Creates a new instance by specifying all properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getEncodedKey() |
PrivateKey |
newInstance() |
void |
setEncodedKey(String pemEncodedKey)
Sets the PEM-encoded private key data.
|
public PemBasedPrivateKeyFactoryBean()
public PemBasedPrivateKeyFactoryBean(String pemEncodedKey)
pemEncodedKey
- PEM-encoded private key data.public String getEncodedKey()
public void setEncodedKey(String pemEncodedKey)
pemEncodedKey
- PEM-encoded private key data.public PrivateKey newInstance() throws EncodingException
newInstance
in interface FactoryBean<PrivateKey>
EncodingException
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.