Revokes an OpenPGP public key located in a KeyStore with a designated revoker.
Note: the designated revoker private key must also exist in the same KeyStore object.

Equivalent GPG command:
gpg --desig-revoke [keyId]

Namespace: DidiSoft.Pgp
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547

Syntax

C#
public void RevokeKeyWithDesignatedRevoker(
	KeyStore keyStore,
	long keyId,
	long revokerKeyId,
	string revokerPassword,
	byte reason,
	string description
)
Visual Basic
Public Sub RevokeKeyWithDesignatedRevoker ( _
	keyStore As KeyStore, _
	keyId As Long, _
	revokerKeyId As Long, _
	revokerPassword As String, _
	reason As Byte, _
	description As String _
)
Visual C++
public:
void RevokeKeyWithDesignatedRevoker(
	KeyStore^ keyStore, 
	long long keyId, 
	long long revokerKeyId, 
	String^ revokerPassword, 
	unsigned char reason, 
	String^ description
)

Parameters

keyStore
Type: DidiSoft.Pgp..::..KeyStore
KeyStore containing the keys
keyId
Type: System..::..Int64
Key ID of the public key to be revoked
revokerKeyId
Type: System..::..Int64
designated revoker key ID
revokerPassword
Type: System..::..String
designated revoker secret key password
reason
Type: System..::..Byte
revocation reason code
description
Type: System..::..String
revocation description

Exceptions

ExceptionCondition
PgpException If the specified designated revoker key has not been assigned as such for this public key

See Also