Class PdfPublicKeyEncryptionHandler
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Public-Key Security encryption handler. Use it to protect documents with certificate(-s).
public sealed class PdfPublicKeyEncryptionHandler : PdfEncryptionHandler
- Inheritance
-
PdfPublicKeyEncryptionHandler
- Inherited Members
Remarks
The Encrypt PDF documents in C# and VB.NET article describes how to encrypt PDF documents.
Check out the other articles and code samples on the Passwords page.
Constructors
- PdfPublicKeyEncryptionHandler(Stream, string)
Creates a new instance of Public-Key Security encryption handler with owner permissions using the specified stream with key store contents.
- PdfPublicKeyEncryptionHandler(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.
- PdfPublicKeyEncryptionHandler(X509Certificate2)
Creates a new instance of Public-Key Security encryption handler using the specified owner certificate.
- PdfPublicKeyEncryptionHandler(X509Certificate2, PdfPermissions)
Creates a new instance of Public-Key Security encryption handler using the specified certificate and permissions.
- PdfPublicKeyEncryptionHandler(string, string)
Creates a new instance of Public-Key Security encryption handler with owner permissions using the specified key store file.
- PdfPublicKeyEncryptionHandler(string, string, PdfPermissions)
Creates a new instance of Public-Key Security encryption handler with the specified permissions using the specified key store file.
Properties
- EncryptMetadata
Gets or sets the value indicating whether this PdfPublicKeyEncryptionHandler should encrypt document metadata.
Methods
- AddOwner(Stream, string)
Adds a new recipient with owner permissions using the specified stream with key store contents.
- AddOwner(X509Certificate2)
Adds a new recipient with owner permissions using the specified owner certificate.
- AddOwner(string, string)
Adds a new recipient with owner permissions using the specified key store file.
- AddRecipient(Stream, string, PdfPermissions)
Adds a new recipient with the specified permissions using the specified stream with key store contents.
- AddRecipient(X509Certificate2, PdfPermissions)
Adds a new recipient with the specified permissions using the specified certificate.
- AddRecipient(string, string, PdfPermissions)
Adds a new recipient with the specified permissions using the specified key store file.
- ToString()
Returns a string that represents this PdfPublicKeyEncryptionHandler instance.