Пример #1
0
 public PDFEncryption(
     byte[] userPassword, byte[] ownerPassword, int allowedPrivileges, int encryptionType) {
   _userPassword = ArrayUtil.cloneOrEmpty(userPassword);
   _ownerPassword = ArrayUtil.cloneOrEmpty(ownerPassword);
   _allowedPrivileges = allowedPrivileges;
   _encryptionType = encryptionType;
 }
Пример #2
0
 public void setOwnerPassword(byte[] ownerPassword) {
   _ownerPassword = ArrayUtil.cloneOrEmpty(ownerPassword);
 }
Пример #3
0
 public byte[] getOwnerPassword() {
   return ArrayUtil.cloneOrEmpty(_ownerPassword);
 }
Пример #4
0
 public void setUserPassword(byte[] userPassword) {
   _userPassword = ArrayUtil.cloneOrEmpty(userPassword);
 }
Пример #5
0
 public byte[] getUserPassword() {
   return ArrayUtil.cloneOrEmpty(_userPassword);
 }
Пример #6
0
 public PDFEncryption(byte[] userPassword, byte[] ownerPassword) {
   _userPassword = ArrayUtil.cloneOrEmpty(userPassword);
   _ownerPassword = ArrayUtil.cloneOrEmpty(ownerPassword);
 }