Package org.cryptacular.bean
Class PemBasedPublicKeyFactoryBean
java.lang.Object
org.cryptacular.bean.PemBasedPublicKeyFactoryBean
- All Implemented Interfaces:
FactoryBean<PublicKey>
Factory for creating a public key from a PEM-encoded string:
-----BEGIN PUBLIC KEY----- MIIBtzCCASsGByqGSM44BAEwggEeAoGBAOulifG+AGGBVGWEjunG4661rydB7eFy RfHzbwVAVaPU0H3zFcOY35z1l6Pk4ZANVHq7hCbViJBR7XyrkYKaUcaB0nSPLgg3 vWWOmvGqhuR6tWRGbz4fyHl1urCRk9mrJum4mAJd3OlLugCyuIqozsYUtvJ5mlGe vir1zmxinKd7AhUA7fBEySYP53g7FLOlcEyuhIjvQAECgYBJ9baoGzn0zKpeteC4 jfbGVuKrFksr2eeY0AFJOeTtyFkCnVqrNnF674eN1RAOwA2tzzhWZ96G0AGux8ah mGsNRbj/qaUTDNRWr7BPBIvDd+8LpMin4Cb5j4c/A7uOY+5WxhUm3TNifueBRohw h1NnexYQqpclcuTRA/ougLX48gOBhQACgYEA6Tw2khtb1g0vcHu6JRgggWPZVTuj /HOH3FyjufsfHogWKrlKebZ6hnQ73qAcEgLLYKctPdCX6wnpXN+BsQGYdTkc0FsU NZD4VW5L5kaWRiLVfE8x55wXdMZtXKWqg1vL6aXYZw7RFe9U9Ck+/AG90knThDC+ xrX2FTDm6uC25rk= -----END PUBLIC KEY-----
- Author:
- Middleware Services
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.PemBasedPublicKeyFactoryBean
(String pemEncodedKey) Creates a new instance by specifying all properties. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEncodedKey
(String pemEncodedKey) Sets the PEM-encoded public key data.
-
Constructor Details
-
PemBasedPublicKeyFactoryBean
public PemBasedPublicKeyFactoryBean()Creates a new instance. -
PemBasedPublicKeyFactoryBean
Creates a new instance by specifying all properties.- Parameters:
pemEncodedKey
- PEM-encoded public key data.
-
-
Method Details
-
getEncodedKey
- Returns:
- PEM-encoded public key data.
-
setEncodedKey
Sets the PEM-encoded public key data.- Parameters:
pemEncodedKey
- PEM-encoded public key data.
-
newInstance
- Specified by:
newInstance
in interfaceFactoryBean<PublicKey>
- Returns:
- New instance of the type handled by this factory.
- Throws:
EncodingException
-