Package org.globus.gsi.util
Class PEMUtil
java.lang.Object
org.globus.gsi.util.PEMUtil
Fill Me
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char[]
(package private) static final int
static final String
(package private) static final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
toHex
(byte[] b) Return a hexadecimal representation of a byte arraystatic void
writeBase64
(OutputStream out, String header, byte[] base64Data, String footer)
-
Field Details
-
LINE_SEP
-
LINE_SEP_BYTES
static final byte[] LINE_SEP_BYTES -
LINE_LENGTH
static final int LINE_LENGTH- See Also:
-
HEX
private static final char[] HEX
-
-
Constructor Details
-
PEMUtil
private PEMUtil()
-
-
Method Details
-
writeBase64
public static void writeBase64(OutputStream out, String header, byte[] base64Data, String footer) throws IOException - Throws:
IOException
-
toHex
Return a hexadecimal representation of a byte array- Parameters:
b
- a byte array- Returns:
- String containing the hexadecimal representation
-