Class PEMUtils


  • public class PEMUtils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.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 java.lang.String toHex​(byte[] b)
      Return a hexadecimal representation of a byte array
      static void writeBase64​(java.io.OutputStream out, java.lang.String header, byte[] base64Data, java.lang.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 final java.lang.String lineSep
      • lineSepBytes

        public static final byte[] lineSepBytes
    • Constructor Detail

      • PEMUtils

        public PEMUtils()
    • Method Detail

      • writeBase64

        public static void writeBase64​(java.io.OutputStream out,
                                       java.lang.String header,
                                       byte[] base64Data,
                                       java.lang.String footer)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • toHex

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