Table of Contents

Class CertificateRevocation

Namespace
MiPdf.Signatures
Assembly
MiPdf.dll

Revocation status of one certificate of the signer's chain, from the revocation data embedded in the document.

public sealed record CertificateRevocation : IEquatable<CertificateRevocation>
Inheritance
CertificateRevocation
Implements
Inherited Members

Constructors

CertificateRevocation(X509Certificate2, RevocationStatus, string?, DateTimeOffset?, DateTimeOffset?, bool)

Revocation status of one certificate of the signer's chain, from the revocation data embedded in the document.

public CertificateRevocation(X509Certificate2 Certificate, RevocationStatus Status, string? Source, DateTimeOffset? IssuedAt, DateTimeOffset? RevocationTime, bool IsFresh)

Parameters

Certificate X509Certificate2

The checked certificate.

Status RevocationStatus

Status at the time of signing.

Source string

"OCSP" or "CRL" for the evidence used, null if there is none.

IssuedAt DateTimeOffset?

Time of the evidence (OCSP thisUpdate, CRL thisUpdate).

RevocationTime DateTimeOffset?

Revocation time if the evidence lists the certificate as revoked – also when the revocation happened after signing and the status is therefore Good.

IsFresh bool

The evidence was issued at or after the time of signing, so it covers that time.

Properties

Certificate

The checked certificate.

public X509Certificate2 Certificate { get; init; }

Property Value

X509Certificate2

IsFresh

The evidence was issued at or after the time of signing, so it covers that time.

public bool IsFresh { get; init; }

Property Value

bool

IssuedAt

Time of the evidence (OCSP thisUpdate, CRL thisUpdate).

public DateTimeOffset? IssuedAt { get; init; }

Property Value

DateTimeOffset?

RevocationTime

Revocation time if the evidence lists the certificate as revoked – also when the revocation happened after signing and the status is therefore Good.

public DateTimeOffset? RevocationTime { get; init; }

Property Value

DateTimeOffset?

Source

"OCSP" or "CRL" for the evidence used, null if there is none.

public string? Source { get; init; }

Property Value

string

Status

Status at the time of signing.

public RevocationStatus Status { get; init; }

Property Value

RevocationStatus