Package com.pd4ml.pdf.cos.security
Class PdfEncryptor.Options
- java.lang.Object
-
- com.pd4ml.pdf.cos.security.PdfEncryptor.Options
-
- Enclosing class:
- PdfEncryptor
public static final class PdfEncryptor.Options extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Options()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfEncryptor.Optionsalgorithm(PdfEncryptor.Algorithm algorithm)PdfEncryptor.OptionsownerPassword(java.lang.String ownerPassword)Password required to change permissions/re-encrypt.PdfEncryptor.Optionspermissions(int permissions)Raw/Ppermission bits (ISO 32000-1 Table 22).PdfEncryptor.OptionsuserPassword(java.lang.String userPassword)Password required to open the document for reading.
-
-
-
Method Detail
-
userPassword
public PdfEncryptor.Options userPassword(java.lang.String userPassword)
Password required to open the document for reading. Empty (the default) means no open password.
-
ownerPassword
public PdfEncryptor.Options ownerPassword(java.lang.String ownerPassword)
Password required to change permissions/re-encrypt. Empty (the default) means no owner password.
-
algorithm
public PdfEncryptor.Options algorithm(PdfEncryptor.Algorithm algorithm)
-
permissions
public PdfEncryptor.Options permissions(int permissions)
Raw/Ppermission bits (ISO 32000-1 Table 22). Defaults to "everything allowed".
-
-