Class PEMUtil

java.lang.Object
org.globus.gsi.util.PEMUtil

public final class PEMUtil extends Object
Fill Me
  • Field Details

    • LINE_SEP

      public static final String 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

      public static String toHex(byte[] b)
      Return a hexadecimal representation of a byte array
      Parameters:
      b - a byte array
      Returns:
      String containing the hexadecimal representation