Open Pgp ContextGet Password For Key Method
Get the password for a secret key.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The password for the secret key.
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
StringThe password for the secret key.
Remarks
Gets the password for a secret key.
Exceptions
| OperationCanceledException | The user chose to cancel the password request. |