Class EncryptionSettings
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.result.pdfproperties.EncryptionSettings
-
public class EncryptionSettings extends Object
This class provides information about the encryption settings of the specified PDF file, such as user and owner passwords, encryption algorithm etc.
-
-
Field Summary
Fields Modifier and Type Field Description StringalgorithmIntegerbitLengthBooleanencryptAttachmentsOnlyBooleanencryptMetadataBooleanhasOwnerPasswordBooleanhasUserPassword
-
Constructor Summary
Constructors Constructor Description EncryptionSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()Returns a string specifying the encryption algorithm used to encrypt the specified PDF file - e.g.IntegergetBitLength()Returns the number of bits in the key used by a cryptographic algorithm to encrypt the specified PDF file.BooleanisMetadataEncrypted()Returns a boolean specifying whether the metadata of the specified PDF file is encrypted or not.BooleanisOwnerPasswordSet()Returns a boolean specifying whether the owner password is set for the specified PDF file.BooleanisUserPasswordSet()Returns a boolean specifying whether the user password is set for the specified PDF file.BooleanonlyAttachmentsEncrypted()Returns a boolean specifying whether only the file attachments in the specified PDF file are encrypted.
-
-
-
Method Detail
-
onlyAttachmentsEncrypted
public Boolean onlyAttachmentsEncrypted()
Returns a boolean specifying whether only the file attachments in the specified PDF file are encrypted.- Returns:
trueif only the file attachments in the specified PDF file are encrypted. False otherwise.
-
isOwnerPasswordSet
public Boolean isOwnerPasswordSet()
Returns a boolean specifying whether the owner password is set for the specified PDF file.- Returns:
trueif the owner password is set for the specified PDF file. False otherwise.
-
isMetadataEncrypted
public Boolean isMetadataEncrypted()
Returns a boolean specifying whether the metadata of the specified PDF file is encrypted or not.- Returns:
trueif the metadata of the specified PDF file is encrypted. False otherwise.
-
isUserPasswordSet
public Boolean isUserPasswordSet()
Returns a boolean specifying whether the user password is set for the specified PDF file.- Returns:
trueif the user password is set for the specified PDF file. False otherwise.
-
getBitLength
public Integer getBitLength()
Returns the number of bits in the key used by a cryptographic algorithm to encrypt the specified PDF file.- Returns:
- An Integer denoting the number of bits in the key used by a cryptographic algorithm.
-
getAlgorithm
public String getAlgorithm()
Returns a string specifying the encryption algorithm used to encrypt the specified PDF file - e.g. "AES" etc.- Returns:
- A String denoting the name of the encryption algorithm used to encrypt the specified PDF file.
-
-