public class PDFEncryptor extends PDFSecurityHandler
ACCESSABILITY_EXTRACTS_ALLOWED, ADD_ANNOTATIONS_ALLOWED, ASSEMBLE_DOCUMENT_ALLOWED, EXTRACT_TEXT_AND_IMAGES_ALLOWED, FILL_IN_FORMS_ALLOWED, MAXIMUM_RESOLUTION_PRINTING_ALLOWED, MODIFICATIONS_ALLOWED, PRINTING_ALLOWED
Constructor and Description |
---|
PDFEncryptor(byte[] fileID,
java.lang.String ownerP,
java.lang.String userP,
int permissionFlags)
Creates a new new PDF encryptor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encryptBytes(byte[] aBuffer)
Returns a new copy of the input buffer, encrypted.
|
byte[] |
encryptString(java.lang.String s)
Returns the contents of the pdf string, encrypted
|
java.util.Map |
getEncryptionDict()
Returns the encryption dictionary.
|
void |
startEncrypt(int oNum,
int gNum)
Encryption of strings and streams use the object number and generation number as part of the
encryption algorithm.
|
arcfour_decrypt, decryptDeep, decryptObject, getBytesForEncryptionEntry, getEncryptionKey, getEncryptionKey, getInstance, getOwnerPasswordEntry, getOwnerPasswordEntryBytes, getPDFStringForBytes, getUserPasswordEntry, getUserPasswordEntryBytes, init, main, setEncryptionParameters, startDecrypt
public PDFEncryptor(byte[] fileID, java.lang.String ownerP, java.lang.String userP, int permissionFlags)
public java.util.Map getEncryptionDict()
public void startEncrypt(int oNum, int gNum)
public byte[] encryptString(java.lang.String s)
public byte[] encryptBytes(byte[] aBuffer)