Module com.github.librepdf.openpdf
Package org.openpdf.text.pdf
Record Class PdfBatchUtils.EncryptJob
java.lang.Object
java.lang.Record
org.openpdf.text.pdf.PdfBatchUtils.EncryptJob
- Enclosing class:
PdfBatchUtils
public static record PdfBatchUtils.EncryptJob(Path input, Path output, String userPassword, String ownerPassword, int permissions, int encryptionType)
extends Record
Encrypt a PDF with given passwords and permissions.
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptJob(Path input, Path output, String userPassword, String ownerPassword, int permissions, int encryptionType) Creates an instance of aEncryptJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theencryptionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.output()Returns the value of theoutputrecord component.Returns the value of theownerPasswordrecord component.intReturns the value of thepermissionsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserPasswordrecord component.
-
Constructor Details
-
EncryptJob
public EncryptJob(Path input, Path output, String userPassword, String ownerPassword, int permissions, int encryptionType) Creates an instance of aEncryptJobrecord class.- Parameters:
input- the value for theinputrecord componentoutput- the value for theoutputrecord componentuserPassword- the value for theuserPasswordrecord componentownerPassword- the value for theownerPasswordrecord componentpermissions- the value for thepermissionsrecord componentencryptionType- the value for theencryptionTyperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
userPassword
Returns the value of theuserPasswordrecord component.- Returns:
- the value of the
userPasswordrecord component
-
ownerPassword
Returns the value of theownerPasswordrecord component.- Returns:
- the value of the
ownerPasswordrecord component
-
permissions
public int permissions()Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-
encryptionType
public int encryptionType()Returns the value of theencryptionTyperecord component.- Returns:
- the value of the
encryptionTyperecord component
-