PdfPublicKeyEncryptionHandler Class

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfPublicKeyEncryptionHandler Class
Public-Key Security encryption handler. Use it to protect documents with certificate(-s).

Inheritance Hierarchy

System.Object
  BitMiracle.Docotic.Pdf.PdfEncryptionHandler
    BitMiracle.Docotic.Pdf.PdfPublicKeyEncryptionHandler

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public sealed class PdfPublicKeyEncryptionHandler : PdfEncryptionHandler
VB
Public NotInheritable Class PdfPublicKeyEncryptionHandler
	Inherits PdfEncryptionHandler

The PdfPublicKeyEncryptionHandler type exposes the following members.

Constructors

  NameDescription
Public methodPdfPublicKeyEncryptionHandler(X509Certificate2)
Creates a new instance of Public-Key Security encryption handler using the specified owner certificate.
Public methodPdfPublicKeyEncryptionHandler(Stream, String)
Creates a new instance of Public-Key Security encryption handler with owner permissions using the specified stream with key store contents.
Public methodPdfPublicKeyEncryptionHandler(X509Certificate2, PdfPermissions)
Creates a new instance of Public-Key Security encryption handler using the specified certificate and permissions.
Public methodPdfPublicKeyEncryptionHandler(String, String)
Creates a new instance of Public-Key Security encryption handler with owner permissions using the specified key store file.
Public methodPdfPublicKeyEncryptionHandler(Stream, String, PdfPermissions)
Creates a new instance of Public-Key Security encryption handler with the specified permissions using the specified stream with key store contents.
Public methodPdfPublicKeyEncryptionHandler(String, String, PdfPermissions)
Creates a new instance of Public-Key Security encryption handler with the specified permissions using the specified key store file.

Properties

  NameDescription
Public propertyAlgorithm
Gets or sets the encryption algorithm to use while encrypting data.
(Inherited from PdfEncryptionHandler.)
Public propertyEncryptMetadata
Gets or sets the value indicating whether to encrypt document metadata.

Methods

  NameDescription
Public methodAddOwner(X509Certificate2)
Adds a new recipient with owner permissions using the specified owner certificate.
Public methodAddOwner(Stream, String)
Adds a new recipient with owner permissions using the specified stream with key store contents.
Public methodAddOwner(String, String)
Adds a new recipient with owner permissions using the specified key store file.
Public methodAddRecipient(X509Certificate2, PdfPermissions)
Adds a new recipient with the specified permissions using the specified certificate.
Public methodAddRecipient(Stream, String, PdfPermissions)
Adds a new recipient with the specified permissions using the specified stream with key store contents.
Public methodAddRecipient(String, String, PdfPermissions)
Adds a new recipient with the specified permissions using the specified key store file.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides Object.ToString().)

See Also