Uses of Class org.pdfbox.exceptions.CryptographyException

Uses in package org.pdfbox.encryption

Methods which throw type org.pdfbox.exceptions.CryptographyException

byte[]
PDFEncryption.computeEncryptedKey(byte[] password, byte[] o, int permissions, byte[] id, int revision, int length)
This will compute the encrypted key.
byte[]
PDFEncryption.computeOwnerPassword(byte[] ownerPassword, byte[] userPassword, int revision, int length)
This algorithm is taked from PDF Reference 1.4 Algorithm 3.3 Page 79.
byte[]
PDFEncryption.computeUserPassword(byte[] password, byte[] o, int permissions, byte[] id, int revision, int length)
This will compute the user password hash.
void
DocumentEncryption.decrypt(Object obj, long objNum, long genNum)
This will dispatch to the correct method.
void
This will decrypt the document.
void
PDFEncryption.encryptData(long objectNumber, long genNumber, byte[] key, InputStream data, OutputStream output)
This will encrypt a piece of data.
byte[]
PDFEncryption.getUserPassword(byte[] ownerPassword, byte[] o, int revision, long length)
This will get the user password from the owner password and the documents o value.
void
This will encrypt the given document, given the owner password and user password.
boolean
PDFEncryption.isOwnerPassword(byte[] ownerPassword, byte[] u, byte[] o, int permissions, byte[] id, int revision, int length)
This will tell if this is the owner password or not.
boolean
PDFEncryption.isUserPassword(byte[] password, byte[] u, byte[] o, int permissions, byte[] id, int revision, int length)
This will tell if this is a valid user password.

Uses in package org.pdfbox.examples.fdf

Methods which throw type org.pdfbox.exceptions.CryptographyException

void
PrintFields.main(String[] args)
This will read a PDF file and print out the form elements.

Uses in package org.pdfbox.pdmodel.encryption

Methods which throw type org.pdfbox.exceptions.CryptographyException

byte[]
StandardSecurityHandler.computeEncryptedKey(byte[] password, byte[] o, int permissions, byte[] id, int encRevision, int length)
Compute the encryption key.
byte[]
StandardSecurityHandler.computeOwnerPassword(byte[] ownerPassword, byte[] userPassword, int encRevision, int length)
Compute the owner entry in the encryption dictionary.
byte[]
StandardSecurityHandler.computeUserPassword(byte[] password, byte[] o, int permissions, byte[] id, int encRevision, int length)
This will compute the user password hash.
void
Decrypt the document.
void
Prepare the document for decryption.
void
Decrypt the document.
void
SecurityHandler.decryptStream(COSStream stream, long objNum, long genNum)
This will decrypt a stream.
void
SecurityHandler.decryptString(COSString string, long objNum, long genNum)
This will decrypt a string.
void
SecurityHandler.encryptData(long objectNumber, long genNumber, InputStream data, OutputStream output)
Encrypt a set of data.
byte[]
StandardSecurityHandler.getUserPassword(byte[] ownerPassword, byte[] o, int encRevision, long length)
Get the user password based on the owner password.
boolean
StandardSecurityHandler.isOwnerPassword(byte[] ownerPassword, byte[] u, byte[] o, int permissions, byte[] id, int encRevision, int length)
Check for owner password.
boolean
StandardSecurityHandler.isUserPassword(byte[] password, byte[] u, byte[] o, int permissions, byte[] id, int encRevision, int length)
Check if a plaintext password is the user password.
void
Prepare the document for encryption.
void
Prepare the document for encryption.
void
Prepare document for encryption.
void
This method must be called by an implementation of this class to really proceed to decryption.

Uses in package org.pdfbox.pdmodel

Methods which throw type org.pdfbox.exceptions.CryptographyException

void
PDDocument.decrypt(String password)
This will decrypt a document.
void
PDDocument.encrypt(String ownerPassword, String userPassword)
This will mark a document to be encrypted.
boolean
PDDocument.isOwnerPassword(String password)
This will determine if this is the owner password.
boolean
PDDocument.isUserPassword(String password)
This will determine if this is the user password.
void
Tries to decrypt the document in memory using the provided decryption material.