Package org.apache.pdfbox.tools
Class Decrypt
- java.lang.Object
-
- org.apache.pdfbox.tools.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.
-
-
-
Field Detail
-
ALIAS
private static final java.lang.String ALIAS
- See Also:
- Constant Field Values
-
PASSWORD
private static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
KEYSTORE
private static final java.lang.String KEYSTORE
- See Also:
- Constant Field Values
-
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
-
-
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.
-
-