 | OpenPgpContextGetSecretKeyAsync Method |
Asynchronously get the secret key for a specified key identifier.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxprotected virtual Task<PgpSecretKey> GetSecretKeyAsync(
long keyId,
CancellationToken cancellationToken
)
Parameters
- keyId Int64
- The key identifier for the desired secret key.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
TaskPgpSecretKeyThe secret key.
Exceptions
Remarks
Asynchronously gets the secret key for a specified key identifier.
See Also