 | GnuPGContextGetSecretKey Method |
Get the secret key for a specified key identifier.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxprotected override PgpSecretKey GetSecretKey(
long keyId,
CancellationToken cancellationToken
)
Parameters
- keyId Int64
- The key identifier for the desired secret key.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
PgpSecretKeyThe secret key.
Exceptions
Remarks
Gets the secret key for a specified key identifier.
See Also