Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeOpenPgpKeySet

OfficeIMO.Security

Namespace
OfficeIMO.Security
Assembly
OfficeIMO.Core
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
sealed

Keys supplied by the caller for one OpenPGP operation. OpenPGP providers never read a user keyring, agent, or key server on their own; only the key material in this set is used.

Inheritance

  • object
  • OfficeOpenPgpKeySet

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 3

Constructors

public OfficeOpenPgpKeySet(IEnumerable<byte[]>? publicKeys = null, IEnumerable<byte[]>? secretKeys = null, Func<string, char[]?>? passphraseProvider = null) #

Creates a key set.

Parameters

publicKeys System.Collections.Generic.IEnumerable<byte[]>? = null optional
Transferable public keys, binary or ASCII-armored. One buffer may hold several keys.
secretKeys System.Collections.Generic.IEnumerable<byte[]>? = null optional
Transferable secret keys, binary or ASCII-armored, used for decryption.
passphraseProvider System.Func<string, char[]?>? = null optional
Returns the passphrase for a secret key, identified by its 16-hex-digit key ID, or null when none is available.

Properties

public IReadOnlyList<byte[]> PublicKeys { get; } #

Transferable public keys.

public IReadOnlyList<byte[]> SecretKeys { get; } #

Transferable secret keys.

public Func<string, char[]?>? PassphraseProvider { get; } #

Passphrase callback keyed by 16-hex-digit key ID.