org.globus.util
Class PEMUtils

java.lang.Object
  extended by org.globus.util.PEMUtils

public class PEMUtils
extends Object


Field Summary
static String lineSep
           
static byte[] lineSepBytes
           
 
Constructor Summary
PEMUtils()
           
 
Method Summary
static String toHex(byte[] b)
          Return a hexadecimal representation of a byte array
static void writeBase64(OutputStream out, String header, byte[] base64Data, String footer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineSep

public static String lineSep

lineSepBytes

public static byte[] lineSepBytes
Constructor Detail

PEMUtils

public PEMUtils()
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