@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PEMHelper extends Object
| Constructor and Description |
|---|
PEMHelper() |
@Nonnull public static KeyPair decodePEM(@Nonnull String pem) throws IOException
KeyPair. Only PCKS1 and PCKS8 formats are supportedpem - String with the PEM formatKeyPairIOException - if a problem exists decoding the PEM@Nonnull public static String encodePEM(@Nonnull KeyPair keys) throws IOException
KeyPair in a PCKS8 PEM formated string.keys - KeyPair to encodeKeyPair as an encoded PEM StringIOException - if a problem exists decoding the PEMCopyright © 2004-2016. All Rights Reserved.