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
CertificateX509Certificate2The checked certificate.
StatusRevocationStatusStatus at the time of signing.
Sourcestring"OCSP" or "CRL" for the evidence used, null if there is none.
IssuedAtDateTimeOffset?Time of the evidence (OCSP thisUpdate, CRL thisUpdate).
RevocationTimeDateTimeOffset?Revocation time if the evidence lists the certificate as revoked – also when the revocation happened after signing and the status is therefore Good.
IsFreshboolThe 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
IsFresh
The evidence was issued at or after the time of signing, so it covers that time.
public bool IsFresh { get; init; }
Property Value
IssuedAt
Time of the evidence (OCSP thisUpdate, CRL thisUpdate).
public DateTimeOffset? IssuedAt { get; init; }
Property Value
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
Source
"OCSP" or "CRL" for the evidence used, null if there is none.
public string? Source { get; init; }
Property Value
Status
Status at the time of signing.
public RevocationStatus Status { get; init; }