Example #1
0
 public void setEncryption(
     int encryptionType, String userPassword, String ownerPassword, int permissions)
     throws DocumentException {
   setEncryption(
       DocWriter.getISOBytes(userPassword),
       DocWriter.getISOBytes(ownerPassword),
       permissions,
       encryptionType);
 }
Example #2
0
 public void setEncryption(
     boolean strength, String userPassword, String ownerPassword, int permissions)
     throws DocumentException {
   setEncryption(
       DocWriter.getISOBytes(userPassword),
       DocWriter.getISOBytes(ownerPassword),
       permissions,
       strength);
 }