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
IOpenPgpThe IOpenPgp implementation.
keySpecifier
stringThe key ID, fingerprint or any part of a user ID that identifies the keypair;
null
to use the default key.
Returns
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
IOpenPgpThe IOpenPgp implementation.
keyIDContainer
IKeyIDContainerAn object containing the key ID that identifies the keypair.
Returns
Exceptions
- KeyNotFoundException
The specified key could not be found on the system.