Class Decrypt


  • public final class Decrypt
    extends java.lang.Object
    This will read a document from the filesystem, decrypt it and and then write the result to the filesystem.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String alias  
      private static java.lang.String ALIAS  
      private java.lang.String infile  
      private java.lang.String keyStore  
      private static java.lang.String KEYSTORE  
      private java.lang.String outfile  
      private java.lang.String password  
      private static java.lang.String PASSWORD  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Decrypt()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void decrypt()  
      static void main​(java.lang.String[] args)
      This is the entry point for the application.
      private void parseCommandLineArgs​(java.lang.String[] args)  
      private static void usage()
      This will print a usage message.
      • Methods inherited from class java.lang.Object

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

      • password

        private java.lang.String password
      • infile

        private java.lang.String infile
      • outfile

        private java.lang.String outfile
      • alias

        private java.lang.String alias
      • keyStore

        private java.lang.String keyStore
    • Constructor Detail

      • Decrypt

        private Decrypt()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        This is the entry point for the application.
        Parameters:
        args - The command-line arguments.
        Throws:
        java.io.IOException - If there is an error decrypting the document.
      • parseCommandLineArgs

        private void parseCommandLineArgs​(java.lang.String[] args)
      • decrypt

        private void decrypt()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • usage

        private static void usage()
        This will print a usage message.