Table of Contents

Class OpenPgpExtensions

Namespace
ZeroInstall.Store.Trust
Assembly
ZeroInstall.Store.dll

Provides extension methods for IOpenPgp implementations.

public static class OpenPgpExtensions
Inheritance
OpenPgpExtensions
Inherited Members

Methods

GetSecretKey(IOpenPgp, string?)

Returns a specific secret key in the keyring.

public static OpenPgpSecretKey GetSecretKey(this IOpenPgp openPgp, string? keySpecifier = null)

Parameters

openPgp IOpenPgp

The IOpenPgp implementation.

keySpecifier string

The key ID, fingerprint or any part of a user ID that identifies the keypair; null to use the default key.

Returns

OpenPgpSecretKey

Exceptions

KeyNotFoundException

The specified key could not be found on the system.

GetSecretKey(IOpenPgp, IKeyIDContainer)

Returns a specific secret key in the keyring.

public static OpenPgpSecretKey GetSecretKey(this IOpenPgp openPgp, IKeyIDContainer keyIDContainer)

Parameters

openPgp IOpenPgp

The IOpenPgp implementation.

keyIDContainer IKeyIDContainer

An object containing the key ID that identifies the keypair.

Returns

OpenPgpSecretKey

Exceptions

KeyNotFoundException

The specified key could not be found on the system.