public PDFEncryption( byte[] userPassword, byte[] ownerPassword, int allowedPrivileges, int encryptionType) { _userPassword = ArrayUtil.cloneOrEmpty(userPassword); _ownerPassword = ArrayUtil.cloneOrEmpty(ownerPassword); _allowedPrivileges = allowedPrivileges; _encryptionType = encryptionType; }
public void setOwnerPassword(byte[] ownerPassword) { _ownerPassword = ArrayUtil.cloneOrEmpty(ownerPassword); }
public byte[] getOwnerPassword() { return ArrayUtil.cloneOrEmpty(_ownerPassword); }
public void setUserPassword(byte[] userPassword) { _userPassword = ArrayUtil.cloneOrEmpty(userPassword); }
public byte[] getUserPassword() { return ArrayUtil.cloneOrEmpty(_userPassword); }
public PDFEncryption(byte[] userPassword, byte[] ownerPassword) { _userPassword = ArrayUtil.cloneOrEmpty(userPassword); _ownerPassword = ArrayUtil.cloneOrEmpty(ownerPassword); }