Revokes a public key.

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

Syntax

C#
public void RevokeKey(
	string publicKeyFileName,
	string privateKeyFileName,
	string privateKeyPassword,
	byte reason,
	string description
)
Visual Basic
Public Sub RevokeKey ( _
	publicKeyFileName As String, _
	privateKeyFileName As String, _
	privateKeyPassword As String, _
	reason As Byte, _
	description As String _
)
Visual C++
public:
void RevokeKey(
	String^ publicKeyFileName, 
	String^ privateKeyFileName, 
	String^ privateKeyPassword, 
	unsigned char reason, 
	String^ description
)

Parameters

publicKeyFileName
Type: System..::..String
public key file that will be revoked (absolute or relative path)
privateKeyFileName
Type: System..::..String
corresponding private key file (absolute or relative path)
Note: may be the same file as publicKeyFileName
privateKeyPassword
Type: System..::..String
private key password
reason
Type: System..::..Byte
revocation reason code (use the REASON_ constants in this class)
description
Type: System..::..String
revocation description

Exceptions

ExceptionCondition
System.IO..::..IOExceptionIf there is a problem reading the key files

See Also