public class PEMUtil extends Object
| Constructor and Description |
|---|
PEMUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List |
decode(byte[] pemBytes) |
static byte[] |
encode(Collection items) |
static String |
formatBigInteger(BigInteger bi,
int length) |
static String |
formatRSAPrivateKey(RSAPrivateCrtKey key) |
static String |
toPem(PublicKey key) |
public static byte[] encode(Collection items) throws IOException
IOExceptionpublic static List decode(byte[] pemBytes)
public static String formatRSAPrivateKey(RSAPrivateCrtKey key)
public static String formatBigInteger(BigInteger bi, int length)
public static String toPem(PublicKey key) throws IOException
IOExceptionCopyright © 2019. All rights reserved.