Package org.globus.util
Class PEMUtils
- java.lang.Object
-
- org.globus.util.PEMUtils
-
public class PEMUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
lineSep
static byte[]
lineSepBytes
-
Constructor Summary
Constructors Constructor Description PEMUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toHex(byte[] b)
Return a hexadecimal representation of a byte arraystatic void
writeBase64(OutputStream out, String header, byte[] base64Data, String footer)
-
-
-
Field Detail
-
lineSep
public static final String lineSep
-
lineSepBytes
public static final byte[] lineSepBytes
-
-
Method Detail
-
writeBase64
public static void writeBase64(OutputStream out, String header, byte[] base64Data, String footer) throws IOException
- Throws:
IOException
-
toHex
public static final String toHex(byte[] b)
Return a hexadecimal representation of a byte array- Parameters:
b
- a byte array- Returns:
- String containing the hexadecimal representation
-
-