Package org.apache.pdfbox.tools
Class Encrypt
- java.lang.Object
-
- org.apache.pdfbox.tools.Encrypt
-
public final class Encrypt extends java.lang.ObjectThis will read a document from the filesystem, encrypt it and and then write the results to the filesystem.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEncrypt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidencrypt(java.lang.String[] args)static voidmain(java.lang.String[] args)This is the entry point for the application.private static voidusage()This will print a usage message.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, java.security.cert.CertificateExceptionThis 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.java.security.cert.CertificateException- If there is an error with a certificate.
-
encrypt
private void encrypt(java.lang.String[] args) throws java.io.IOException, java.security.cert.CertificateException- Throws:
java.io.IOExceptionjava.security.cert.CertificateException
-
usage
private static void usage()
This will print a usage message.
-
-