public static class PasswordProtectOptions.Builder extends Object
PasswordProtectOptions instance.| Constructor and Description |
|---|
Builder()
Constructs a
Builder instance. |
| Modifier and Type | Method and Description |
|---|---|
PasswordProtectOptions |
build()
Returns a new
PasswordProtectOptions instance built from the current state of this builder. |
PasswordProtectOptions.Builder |
setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
Sets the intended encryption algorithm required for encrypting the PDF file.
|
PasswordProtectOptions.Builder |
setUserPassword(String userPassword)
Sets the intended user password required for encrypting the PDF file.
|
public PasswordProtectOptions.Builder setUserPassword(String userPassword)
userPassword - the user passwordpublic PasswordProtectOptions.Builder setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
encryptionAlgorithm - the encryption algorithmpublic PasswordProtectOptions build()
PasswordProtectOptions instance built from the current state of this builder.ProtectPDFOptions instanceCopyright © 2020 Adobe. All rights reserved.