Aspose.Tasks for C++
Aspose::Tasks::Saving::PdfEncryptionDetails Class Reference

Contains details for a PDF encryption. More...

#include <PdfEncryptionDetails.h>

Inherits System::Object.

Public Member Functions

PdfEncryptionAlgorithm get_EncryptionAlgorithm () const
 Gets the encryption mode. More...
 
void set_EncryptionAlgorithm (PdfEncryptionAlgorithm value)
 Sets the encryption mode. More...
 
System::String get_OwnerPassword () const
 Gets the Owner password. More...
 
void set_OwnerPassword (const System::String &value)
 Sets the Owner password. More...
 
PdfPermissions get_Permissions () const
 Gets the permissions. More...
 
void set_Permissions (PdfPermissions value)
 Sets the permissions. More...
 
System::String get_UserPassword () const
 Gets the User password. More...
 
void set_UserPassword (const System::String &value)
 Sets the User password. More...
 
 PdfEncryptionDetails (const System::String &userPassword, const System::String &ownerPassword, PdfEncryptionAlgorithm encryptionAlgorithm)
 Initializes a new instance of the PdfEncryptionDetails class. More...
 

Detailed Description

Contains details for a PDF encryption.

Constructor & Destructor Documentation

◆ PdfEncryptionDetails()

Aspose::Tasks::Saving::PdfEncryptionDetails::PdfEncryptionDetails ( const System::String &  userPassword,
const System::String &  ownerPassword,
PdfEncryptionAlgorithm  encryptionAlgorithm 
)

Initializes a new instance of the PdfEncryptionDetails class.

Parameters
userPasswordThe user password allowing to open protected documents.
ownerPasswordThe owner password allowing to open protected documents.
encryptionAlgorithmThe PdfEncryptionAlgorithm instance which indicate encryption algorithm.

Member Function Documentation

◆ get_EncryptionAlgorithm()

PdfEncryptionAlgorithm Aspose::Tasks::Saving::PdfEncryptionDetails::get_EncryptionAlgorithm ( ) const

Gets the encryption mode.

◆ get_OwnerPassword()

System::String Aspose::Tasks::Saving::PdfEncryptionDetails::get_OwnerPassword ( ) const

Gets 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.

◆ get_Permissions()

PdfPermissions Aspose::Tasks::Saving::PdfEncryptionDetails::get_Permissions ( ) const

Gets the permissions.

◆ get_UserPassword()

System::String Aspose::Tasks::Saving::PdfEncryptionDetails::get_UserPassword ( ) const

Gets 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.

◆ set_EncryptionAlgorithm()

void Aspose::Tasks::Saving::PdfEncryptionDetails::set_EncryptionAlgorithm ( PdfEncryptionAlgorithm  value)

Sets the encryption mode.

◆ set_OwnerPassword()

void Aspose::Tasks::Saving::PdfEncryptionDetails::set_OwnerPassword ( const System::String &  value)

Sets 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.

◆ set_Permissions()

void Aspose::Tasks::Saving::PdfEncryptionDetails::set_Permissions ( PdfPermissions  value)

Sets the permissions.

◆ set_UserPassword()

void Aspose::Tasks::Saving::PdfEncryptionDetails::set_UserPassword ( const System::String &  value)

Sets 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.