Package org.globus.gsi.util
Class PEMUtil
- java.lang.Object
-
- org.globus.gsi.util.PEMUtil
-
public final class PEMUtil extends java.lang.Object
Fill Me
-
-
Field Summary
Fields Modifier and Type Field Description private static char[]
HEX
(package private) static int
LINE_LENGTH
static java.lang.String
LINE_SEP
(package private) static byte[]
LINE_SEP_BYTES
-
Constructor Summary
Constructors Modifier Constructor Description private
PEMUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
toHex(byte[] b)
Return a hexadecimal representation of a byte arraystatic void
writeBase64(java.io.OutputStream out, java.lang.String header, byte[] base64Data, java.lang.String footer)
-
-
-
Field Detail
-
LINE_SEP
public static final java.lang.String LINE_SEP
-
LINE_SEP_BYTES
static final byte[] LINE_SEP_BYTES
-
LINE_LENGTH
static final int LINE_LENGTH
- See Also:
- Constant Field Values
-
HEX
private static final char[] HEX
-
-
Method Detail
-
writeBase64
public static void writeBase64(java.io.OutputStream out, java.lang.String header, byte[] base64Data, java.lang.String footer) throws java.io.IOException
- Throws:
java.io.IOException
-
toHex
public static java.lang.String toHex(byte[] b)
Return a hexadecimal representation of a byte array- Parameters:
b
- a byte array- Returns:
- String containing the hexadecimal representation
-
-