EncryptionDetails

Contains details for a pdf encryption.

Constructors

ConstructorDescription
EncryptionDetails(String userPassword, String ownerPassword, int permissions, EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)Initializes a new instance of the PdfEncryptionDetailsCore class.

Methods

MethodDescription
getUserPassword()Gets or sets the User password. Value: The user password. Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary.
setUserPassword(String value)Gets or sets the User password. Value: The user password. Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary.
getOwnerPassword()Gets or sets the Owner password. Value: The owner password. Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions.
setOwnerPassword(String value)Gets or sets the Owner password. Value: The owner password. Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions.
getPermissions()Gets or sets the permissions. Value: The permissions.
setPermissions(int value)Gets or sets the permissions. Value: The permissions.
getEncryptionAlgorithm()Gets the encryption mode. Value: The encryption algorithm.
setEncryptionAlgorithm(EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)Gets or sets the encryption mode. Value: The encryption algorithm.

EncryptionDetails(String userPassword, String ownerPassword, int permissions, EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)

public EncryptionDetails(String userPassword, String ownerPassword, int permissions, EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)

Initializes a new instance of the PdfEncryptionDetailsCore class.

Parameters:

ParameterTypeDescription
userPasswordStringThe user password.
ownerPasswordStringThe owner password.
permissionsintThe permissions.
encryptionAlgorithmEncryptionDetails.EncryptionAlgorithmEnumThe encryption algorithm.

getUserPassword()

public String getUserPassword()

Gets or sets the User password. Value: The user password. Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary.

Returns: String

setUserPassword(String value)

public void setUserPassword(String value)

Gets or sets the User password. Value: The user password. Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary.

getOwnerPassword()

public String getOwnerPassword()

Gets or sets the Owner password. Value: The owner password. Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions.

Returns: String

setOwnerPassword(String value)

public void setOwnerPassword(String value)

Gets or sets the Owner password. Value: The owner password. Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions.

getPermissions()

public int getPermissions()

Gets or sets the permissions. Value: The permissions.

Returns: int

setPermissions(int value)

public void setPermissions(int value)

Gets or sets the permissions. Value: The permissions.

getEncryptionAlgorithm()

public EncryptionDetails.EncryptionAlgorithmEnum getEncryptionAlgorithm()

Gets the encryption mode. Value: The encryption algorithm.

Returns: EncryptionDetails.EncryptionAlgorithmEnum

setEncryptionAlgorithm(EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)

public void setEncryptionAlgorithm(EncryptionDetails.EncryptionAlgorithmEnum encryptionAlgorithm)

Gets or sets the encryption mode. Value: The encryption algorithm.