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
openPgpIOpenPgpThe IOpenPgp implementation.
keySpecifierstringThe key ID, fingerprint or any part of a user ID that identifies the keypair;
nullto 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
openPgpIOpenPgpThe IOpenPgp implementation.
keyIDContainerIKeyIDContainerAn object containing the key ID that identifies the keypair.
Returns
Exceptions
- KeyNotFoundException
The specified key could not be found on the system.