"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardProtectionPolicy.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)