@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PEMHelper extends Object
PEMEncodablePEMEncodable,
PEMEncodable.encode(),
PEMEncodable.decode(String, char[])| Constructor and Description |
|---|
PEMHelper() |
| Modifier and Type | Method and Description |
|---|---|
static KeyPair |
decodePEM(String pem)
Decodes a PEM formatted string to
KeyPair. |
static String |
encodePEM(KeyPair keys)
Encodes a
KeyPair in a PCKS1 PEM formatted string. |
@NonNull public static KeyPair decodePEM(@NonNull String pem) throws IOException
KeyPair. Wrapper for PEMEncodable.decode(String).pem - String with the PEM formatKeyPairIOException - if a problem exists decoding the PEMPEMEncodable.decode(String, char[])@NonNull public static String encodePEM(@NonNull KeyPair keys) throws IOException
KeyPair in a PCKS1 PEM formatted string. Wrapper for PEMEncodable.encode().keys - KeyPair to encodeKeyPair as an encoded PEM StringIOException - if a problem exists decoding the PEMPEMEncodable.encode()Copyright © 2016–2022. All rights reserved.