StandardProtectionPolicy.java (pdfbox-2.0.23-src) | : | StandardProtectionPolicy.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 48 | skipping to change at line 48 | |||
private AccessPermission permissions; | private AccessPermission permissions; | |||
@SuppressWarnings({"squid:S2068"}) | @SuppressWarnings({"squid:S2068"}) | |||
private String ownerPassword = ""; | private String ownerPassword = ""; | |||
@SuppressWarnings({"squid:S2068"}) | @SuppressWarnings({"squid:S2068"}) | |||
private String userPassword = ""; | private String userPassword = ""; | |||
/** | /** | |||
* Creates an new instance of the standard protection policy | * Creates an new instance of the standard protection policy | |||
* in order to protect a PDF document with passwords. | * in order to protect a PDF document with passwords. | |||
* | * | |||
* @param ownerPassword The owner's password. | * @param ownerPassword The owner password. | |||
* @param userPassword The users's password. | * @param userPassword The user password. | |||
* @param permissions The access permissions given to the user. | * @param permissions The access permissions given to the user. | |||
*/ | */ | |||
public StandardProtectionPolicy(String ownerPassword, String userPassword, | public StandardProtectionPolicy(String ownerPassword, String userPassword, | |||
AccessPermission permissions) | AccessPermission permissions) | |||
{ | { | |||
this.ownerPassword = ownerPassword; | this.ownerPassword = ownerPassword; | |||
this.userPassword = userPassword; | this.userPassword = userPassword; | |||
this.permissions = permissions; | this.permissions = permissions; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |