Class EncryptionOptions

Class EncryptionOptions

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

Represents Encryption Options for Aspose.Pdf.Plugins.Security plugin.

public class EncryptionOptions : OrganizerBaseOptions, IPluginOptions

Inheritance

objectOrganizerBaseOptionsEncryptionOptions

Implements

IPluginOptions

Inherited Members

OrganizerBaseOptions.AddInput(IDataSource), OrganizerBaseOptions.AddOutput(IDataSource), OrganizerBaseOptions.Inputs, OrganizerBaseOptions.Outputs, OrganizerBaseOptions.CloseInputStreams, OrganizerBaseOptions.CloseOutputStreams, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

EncryptionOptions(string, string, DocumentPrivilege, CryptoAlgorithm)

Initializes new instance of the Aspose.Pdf.Plugins.EncryptionOptions object with default options.

public EncryptionOptions(string ownerPassword, string userPassword, DocumentPrivilege documentPrivilege, CryptoAlgorithm cryptoAlgorithm = CryptoAlgorithm.AESx256)

Parameters

ownerPassword string

Owner password.

userPassword string

User password.

documentPrivilege DocumentPrivilege

Document permissions.

cryptoAlgorithm CryptoAlgorithm

Cryptographic algorithm.

Properties

CryptoAlgorithm

Cryptographic algorithm, see Aspose.Pdf.Plugins.EncryptionOptions.CryptoAlgorithm for details.

public CryptoAlgorithm CryptoAlgorithm { get; set; }

Property Value

CryptoAlgorithm

DocumentPrivilege

Document permissions, see Aspose.Pdf.Permissions for details.

public DocumentPrivilege DocumentPrivilege { get; set; }

Property Value

DocumentPrivilege

OwnerPassword

Owner password.

public string OwnerPassword { get; set; }

Property Value

string

UserPassword

User password.

public string UserPassword { get; set; }

Property Value

string

 English