public final class PEMUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static char[] |
HEX |
(package private) static int |
LINE_LENGTH |
static java.lang.String |
LINE_SEP |
(package private) static byte[] |
LINE_SEP_BYTES |
Modifier | Constructor and Description |
---|---|
private |
PEMUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
toHex(byte[] b)
Return a hexadecimal representation of a byte array
|
static void |
writeBase64(java.io.OutputStream out,
java.lang.String header,
byte[] base64Data,
java.lang.String footer) |
public static final java.lang.String LINE_SEP
static final byte[] LINE_SEP_BYTES
static final int LINE_LENGTH
private static final char[] HEX
public static void writeBase64(java.io.OutputStream out, java.lang.String header, byte[] base64Data, java.lang.String footer) throws java.io.IOException
java.io.IOException
public static java.lang.String toHex(byte[] b)
b
- a byte array