Package org.globus.util
Class PEMUtils
java.lang.Object
org.globus.util.PEMUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char[]
(package private) static final int
static final String
static final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final 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_LENGTH
static final int LINE_LENGTH- See Also:
-
lineSep
-
lineSepBytes
public static final byte[] lineSepBytes -
hex
private static final char[] hex
-
-
Constructor Details
-
PEMUtils
public PEMUtils()
-
-
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
-