Click or drag to resize
MimeKit

OpenPgpContextGetPrivateKey Method

Gets the private key from the specified secret key.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected PgpPrivateKey GetPrivateKey(
	PgpSecretKey key
)

Parameters

key  PgpSecretKey
The secret key.

Return Value

PgpPrivateKey
The private key.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
OperationCanceledException The user chose to cancel the password prompt.
UnauthorizedAccessException 3 bad attempts were made to unlock the secret key.
Remarks
Gets the private key from the specified secret key.
See Also