OpenPgpContextGetPasswordForKey Method

Get the password for a secret key.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected abstract string GetPasswordForKey(
	PgpSecretKey key
)

Parameters

key  PgpSecretKey
The secret key.

Return Value

String
The password for the secret key.

Remarks

Gets the password for a secret key.

Exceptions

OperationCanceledException The user chose to cancel the password request.

See Also