Package org.openpdf.pdf
Class PDFEncryption
java.lang.Object
org.openpdf.pdf.PDFEncryption
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final byte[]private final byte[] -
Constructor Summary
ConstructorsConstructorDescriptionPDFEncryption(byte[] userPassword, byte[] ownerPassword) PDFEncryption(byte[] userPassword, byte[] ownerPassword, int allowedPrivileges) PDFEncryption(byte[] userPassword, byte[] ownerPassword, int allowedPrivileges, int encryptionType) -
Method Summary
Modifier and TypeMethodDescriptionintintbyte[]byte[]
-
Field Details
-
_userPassword
private final byte[] _userPassword -
_ownerPassword
private final byte[] _ownerPassword -
_allowedPrivileges
private final int _allowedPrivileges -
_encryptionType
private final int _encryptionType
-
-
Constructor Details
-
PDFEncryption
public PDFEncryption(byte[] userPassword, byte[] ownerPassword) -
PDFEncryption
public PDFEncryption(byte[] userPassword, byte[] ownerPassword, int allowedPrivileges) -
PDFEncryption
public PDFEncryption(byte[] userPassword, byte[] ownerPassword, int allowedPrivileges, int encryptionType)
-
-
Method Details
-
getUserPassword
public byte[] getUserPassword() -
getOwnerPassword
public byte[] getOwnerPassword() -
getAllowedPrivileges
public int getAllowedPrivileges() -
getEncryptionType
public int getEncryptionType()
-