X509CRLEntry Class

Represents a CRL entry of certificate revocation list that contains information about revoked certificate.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public sealed class X509CRLEntry
Inheritance
Object    X509CRLEntry

Remarks

This class do not expose any public constructor.

Constructors

X509CRLEntry(Asn1Reader) Initializes a new instance of the X509CRLEntry class from a ASN.1 reader that points to a CRL entry.
X509CRLEntry(Byte) Initializes a new instance of the X509CRLEntry class from a ASN.1-encoded byte array.
X509CRLEntry(String, NullableDateTime, Int32) Initializes a new instance of the X509CRLEntry class from a serial number, revocation date and revocation reason code.

Properties

ReasonCode Gets the revocation reason code. The possible codes and their values are:
Revocation codeCode definition.
0Unspecified - the certificate was revoked due to a reason that is not referenced in the table.
1Key Compromise - the certificate's private key was compromised or disclosed to a unauthorized person. This code is used for end entity certificates.
2CA Compromise - the CA certificate's private key was compromised or disclosed to a unauthorized person. This code is used for CA certificates.
3Change Of Affiliation - the certificate holder changed his/her position or role that do not allow current certificate usage.
4Superseded - the certificate was revoked because it is superseded by a new certificate.
5Cease Of Operation - the certificate holder do no longer perform the role. For example, an employee leaves a organization, or server is decommissioned.
6Hold Certificate - the certificate is revoked for a time (not permanently) and it is possible to "unrevoke" the certificate further. This code should not be used, because it is impossible to determine whether the certificate was invalid at certain date.
7Privilege Withdrawn - the certificate holder do not have required privileges to use the certificate.
8Release From Hold - the certificate is removed from Hold Certificate state and will be removed from CRL.
10Authorization Authority Compromise - the authority that performs authorization tasks is compromised/disclosed.
ReasonMessage Gets the textual representation of RevocationCode. See ReasonCode for the list of possible values and code meanings.
RevocationDate Gets the date and time when certificate was revoked by an issuer.
SerialNumber Gets the serial number of the revoked certificate.

Methods

Encode Encodes revocation entry to a ASN.1-encoded byte array.
Equals Compares two X509CRLEntry objects for equality.
(Overrides ObjectEquals(Object))
GetHashCode
(Overrides ObjectGetHashCode)
GetType
(Inherited from Object)
ToString Gets textual information about revoked certificate. An output contains certificate serial number and revocation date.
(Overrides ObjectToString)

See Also