X509CRLEntry(String, NullableDateTime, Int32) Constructor

Initializes a new instance of the X509CRLEntry class from a serial number, revocation date and revocation reason code.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public X509CRLEntry(
	string serialNumber,
	DateTime? revocationDate = null,
	int reasonCode = 0
)

Parameters

serialNumber  String
Specifies the revoked certificate serial number. Serial number must be a hex string. It may be lower/upper case and may contain single space between octets.
revocationDate  NullableDateTime  (Optional)
Specifies the date and time when certificate is considered explicitly untrusted (revoked). If the parameter is null, a current date and time is used.
reasonCode  Int32  (Optional)
Specifies the revocation reason. The value can be one of specified in the ReasonCode, except: Hold Certificate and Release From Hold. Default parameter value is Unspecified.

Exceptions

ArgumentNullExceptionThe serialNumber parameter is null reference or empty string.
ArgumentExceptionThe reasonCode contains invalid reason code.

See Also