예제 #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);
 }