Revokes an OpenPGP public key with a designated revoker private key file.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public void RevokeKeyWithDesignatedRevoker(
string publicKeyFileName,
string revokerPrivateKeyFileName,
string revokerPassword,
byte reason,
string description
) |
| Visual Basic |
|---|
Public Sub RevokeKeyWithDesignatedRevoker ( _
publicKeyFileName As String, _
revokerPrivateKeyFileName As String, _
revokerPassword As String, _
reason As Byte, _
description As String _
) |
| Visual C++ |
|---|
public:
void RevokeKeyWithDesignatedRevoker(
String^ publicKeyFileName,
String^ revokerPrivateKeyFileName,
String^ revokerPassword,
unsigned char reason,
String^ description
) |
Parameters
- publicKeyFileName
- Type: System..::..String
the public key that we want to revoke (absolute or relative path)
- revokerPrivateKeyFileName
- Type: System..::..String
designated revoker secret key file (absolute or relative path)
- revokerPassword
- Type: System..::..String
designated revoker secret key password
- reason
- Type: System..::..Byte
revocation reason code (use the REASON_ constants in this class)
- description
- Type: System..::..String
revocation description
Exceptions
| Exception | Condition |
|---|
| System.IO..::..IOException | If there is a problem reading the key files |
| PgpException |
If the specified designated revoker key has not been assigned as such for this public key
|
See Also