1 31 package org.pdfbox.pdmodel.encryption; 32 33 52 public class StandardProtectionPolicy extends ProtectionPolicy 53 { 54 55 private AccessPermission permissions; 56 57 private String ownerPassword = ""; 58 59 private String userPassword = ""; 60 61 62 70 public StandardProtectionPolicy(String ownerPass, String userPass, AccessPermission perms) 71 { 72 this.permissions = perms; 73 this.userPassword = userPass; 74 this.ownerPassword = ownerPass; 75 } 76 77 82 public AccessPermission getPermissions() 83 { 84 return permissions; 85 } 86 87 92 public void setPermissions(AccessPermission perms) 93 { 94 this.permissions = perms; 95 } 96 97 102 public String getOwnerPassword() 103 { 104 return ownerPassword; 105 } 106 107 112 public void setOwnerPassword(String ownerPass) 113 { 114 this.ownerPassword = ownerPass; 115 } 116 117 122 public String getUserPassword() 123 { 124 return userPassword; 125 } 126 127 132 public void setUserPassword(String userPass) 133 { 134 this.userPassword = userPass; 135 } 136 } | Popular Tags |