Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailPgp

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
static

PGP/MIME (RFC 3156) and inline OpenPGP verification and decryption over a caller-supplied OpenPGP provider and key set. Nothing reads a user keyring; only the supplied keys are used.

Inheritance

  • object
  • EmailPgp

Methods

public static EmailPgpDecryptionResult Decrypt(EmailDocument document, IOfficeOpenPgpProvider provider, OfficeOpenPgpKeySet keys, OfficeOpenPgpOptions? options = null, EmailReaderOptions? contentReaderOptions = null) #

Decrypts a PGP/MIME multipart/encrypted message or an inline armored message with a supplied secret key. A decrypted PGP/MIME multipart/signed entity is verified as well (RFC 3156 section 6.1).

Parameters

document OfficeIMO.Email.EmailDocument required
provider OfficeIMO.Security.IOfficeOpenPgpProvider required
keys OfficeIMO.Security.OfficeOpenPgpKeySet required
options OfficeIMO.Security.OfficeOpenPgpOptions? = null optional
contentReaderOptions OfficeIMO.Email.EmailReaderOptions? = null optional
public static EmailPgpVerificationResult Verify(EmailDocument document, IOfficeOpenPgpProvider provider, OfficeOpenPgpKeySet keys, OfficeOpenPgpOptions? options = null, EmailReaderOptions? contentReaderOptions = null) #

Verifies a PGP/MIME multipart/signed message over the exact bytes of its signed part, or an inline cleartext-signed body.

Parameters

document OfficeIMO.Email.EmailDocument required
provider OfficeIMO.Security.IOfficeOpenPgpProvider required
keys OfficeIMO.Security.OfficeOpenPgpKeySet required
options OfficeIMO.Security.OfficeOpenPgpOptions? = null optional
contentReaderOptions OfficeIMO.Email.EmailReaderOptions? = null optional