Package org.apache.pdfbox.tools
Class Decrypt
- java.lang.Object
-
- org.apache.pdfbox.tools.Decrypt
-
public final class Decrypt extends java.lang.ObjectThis 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.Stringaliasprivate static java.lang.StringALIASprivate java.lang.Stringinfileprivate java.lang.StringkeyStoreprivate static java.lang.StringKEYSTOREprivate java.lang.Stringoutfileprivate java.lang.Stringpasswordprivate static java.lang.StringPASSWORD
-
Constructor Summary
Constructors Modifier Constructor Description privateDecrypt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddecrypt()static voidmain(java.lang.String[] args)This is the entry point for the application.private voidparseCommandLineArgs(java.lang.String[] args)private static voidusage()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.IOExceptionThis 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.
-
-