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 |
setContentEncryption(ContentEncryption contentEncryption)
Sets the intended type of content to encrypt in the PDF file.
|
PasswordProtectOptions.Builder |
setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
Sets the intended encryption algorithm required for encrypting the PDF file.
|
PasswordProtectOptions.Builder |
setOwnerPassword(String ownerPassword)
Sets the intended owner password required to control access permissions in the encrypted PDF file.
|
PasswordProtectOptions.Builder |
setPermissions(Permissions permissions)
Sets the intended permissions for the encrypted PDF file.
|
PasswordProtectOptions.Builder |
setUserPassword(String userPassword)
Sets the intended user password required for opening the encrypted PDF file.
|
public PasswordProtectOptions.Builder setUserPassword(String userPassword)
userPassword
- the user password; can not be null or emptypublic PasswordProtectOptions.Builder setOwnerPassword(String ownerPassword)
ownerPassword
- the owner password; can not be null or emptypublic PasswordProtectOptions.Builder setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
encryptionAlgorithm
- the encryption algorithm; can not be nullpublic PasswordProtectOptions.Builder setContentEncryption(ContentEncryption contentEncryption)
contentEncryption
- the type of content to encrypt; can not be nullpublic PasswordProtectOptions.Builder setPermissions(Permissions permissions)
permissions
- the permissions; can not be nullpublic PasswordProtectOptions build()
PasswordProtectOptions
instance built from the current state of this builder.ProtectPDFOptions
instanceCopyright © 2023 Adobe. All rights reserved.