Zero Install .NET API 2.20.0
ZeroInstall.Store.Trust.OpenPgpExtensions Class Reference

Provides extension methods for IOpenPgp implementations. More...

Static Public Member Functions

static OpenPgpSecretKey GetSecretKey (this IOpenPgp openPgp, IKeyIDContainer keyIDContainer)
 Returns a specific secret key in the keyring. More...
 
static OpenPgpSecretKey GetSecretKey (this IOpenPgp openPgp, string? keySpecifier=null)
 Returns a specific secret key in the keyring. More...
 

Detailed Description

Provides extension methods for IOpenPgp implementations.

Member Function Documentation

◆ GetSecretKey() [1/2]

static OpenPgpSecretKey ZeroInstall.Store.Trust.OpenPgpExtensions.GetSecretKey ( this IOpenPgp  openPgp,
IKeyIDContainer  keyIDContainer 
)
inlinestatic

Returns a specific secret key in the keyring.

Parameters
openPgpThe IOpenPgp implementation.
keyIDContainerAn object containing the key ID that identifies the keypair.
Exceptions
KeyNotFoundExceptionThe specified key could not be found on the system.
See also
IOpenPgp.Sign, IOpenPgp.ExportKey

◆ GetSecretKey() [2/2]

static OpenPgpSecretKey ZeroInstall.Store.Trust.OpenPgpExtensions.GetSecretKey ( this IOpenPgp  openPgp,
string?  keySpecifier = null 
)
inlinestatic

Returns a specific secret key in the keyring.

Parameters
openPgpThe IOpenPgp implementation.
keySpecifierThe key ID, fingerprint or any part of a user ID that identifies the keypair; null to use the default key.
Exceptions
KeyNotFoundExceptionThe specified key could not be found on the system.
See also
IOpenPgp.Sign, IOpenPgp.ExportKey

The documentation for this class was generated from the following file: