Changes private key password.
This method is equivalent to the GnuPG commands:
gpg --edit-key [userId]
Command>passwd
Namespace: DidiSoft.PgpThis method is equivalent to the GnuPG commands:
gpg --edit-key [userId]
Command>passwd
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public virtual void ChangePrivateKeyPassword( long keyId, string oldPassword, string newPassword ) |
| Visual Basic |
|---|
Public Overridable Sub ChangePrivateKeyPassword ( _ keyId As Long, _ oldPassword As String, _ newPassword As String _ ) |
| Visual C++ |
|---|
public: virtual void ChangePrivateKeyPassword( long long keyId, String^ oldPassword, String^ newPassword ) |
Parameters
- keyId
- Type: System..::..Int64
Key Id of the key pair
- oldPassword
- Type: System..::..String
current password of the private key
- newPassword
- Type: System..::..String
new password of the private key
Exceptions
| Exception | Condition |
|---|---|
| DidiSoft.Pgp.Exceptions..::..WrongPasswordException | The supplied current password is incorrect |