Class PrettyPrintCert


  • public class PrettyPrintCert
    extends java.lang.Object
    The PrettyPrintCert class is a utility program designed to "pretty print" a certificate. It assumes that the name of a data file is passed to the program via the command line, and that the contents contain a certificate encoded in an ASCII BASE 64 format. Note that the data file may contain an optional "-----BEGIN" header and/or an optional "-----END" trailer.

    The program may be invoked as follows:

    
          PrettyPrintCert <input filename> [output filename]
    
          NOTE:  <input filename>   must contain an ASCII
                                    BASE 64 encoded certificate
    
                 <output filename>  contains a certificate displayed
                                    in a "pretty print" ASCII format
     
    Version:
    $Revision$, $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ARGC  
      static java.lang.String HEADER  
      static java.lang.String TRAILER  
    • Constructor Summary

      Constructors 
      Constructor Description
      PrettyPrintCert()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] argv)  
      static void usageAndExit()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrettyPrintCert

        public PrettyPrintCert()
    • Method Detail

      • usageAndExit

        public static void usageAndExit()
      • main

        public static void main​(java.lang.String[] argv)