public class PemBasedPublicKeyFactoryBean extends Object implements FactoryBean<PublicKey>
-----BEGIN PUBLIC KEY----- MIIBtzCCASsGByqGSM44BAEwggEeAoGBAOulifG+AGGBVGWEjunG4661rydB7eFy RfHzbwVAVaPU0H3zFcOY35z1l6Pk4ZANVHq7hCbViJBR7XyrkYKaUcaB0nSPLgg3 vWWOmvGqhuR6tWRGbz4fyHl1urCRk9mrJum4mAJd3OlLugCyuIqozsYUtvJ5mlGe vir1zmxinKd7AhUA7fBEySYP53g7FLOlcEyuhIjvQAECgYBJ9baoGzn0zKpeteC4 jfbGVuKrFksr2eeY0AFJOeTtyFkCnVqrNnF674eN1RAOwA2tzzhWZ96G0AGux8ah mGsNRbj/qaUTDNRWr7BPBIvDd+8LpMin4Cb5j4c/A7uOY+5WxhUm3TNifueBRohw h1NnexYQqpclcuTRA/ougLX48gOBhQACgYEA6Tw2khtb1g0vcHu6JRgggWPZVTuj /HOH3FyjufsfHogWKrlKebZ6hnQ73qAcEgLLYKctPdCX6wnpXN+BsQGYdTkc0FsU NZD4VW5L5kaWRiLVfE8x55wXdMZtXKWqg1vL6aXYZw7RFe9U9Ck+/AG90knThDC+ xrX2FTDm6uC25rk= -----END PUBLIC KEY-----
KeyPairUtil.decodePublicKey(byte[])
Constructor and Description |
---|
PemBasedPublicKeyFactoryBean()
Creates a new instance.
|
PemBasedPublicKeyFactoryBean(String pemEncodedKey)
Creates a new instance by specifying all properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getEncodedKey() |
PublicKey |
newInstance() |
void |
setEncodedKey(String pemEncodedKey)
Sets the PEM-encoded public key data.
|
public PemBasedPublicKeyFactoryBean()
public PemBasedPublicKeyFactoryBean(String pemEncodedKey)
pemEncodedKey
- PEM-encoded public key data.public String getEncodedKey()
public void setEncodedKey(String pemEncodedKey)
pemEncodedKey
- PEM-encoded public key data.public PublicKey newInstance() throws EncodingException
newInstance
in interface FactoryBean<PublicKey>
EncodingException
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.