| OpenPgpContextGetSecretKey Method |
Get the secret key for a specified key identifier.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax protected abstract 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