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()
newInstance
in interface FactoryBean<PrivateKey>
Copyright © 2016 JBoss by Red Hat. All rights reserved.