Table of Contents

Class SecomSignatureCheck

Namespace
EncDotNet.S100.Collections.Secom
Assembly
EncDotNet.S100.Collections.dll
public sealed record SecomSignatureCheck : IEquatable<SecomSignatureCheck>
Inheritance
SecomSignatureCheck
Implements
Inherited Members

Constructors

SecomSignatureCheck(SecomSignatureStatus, string?, bool?, bool, string?)

public SecomSignatureCheck(SecomSignatureStatus Status, string? Signer = null, bool? SignerTrusted = null, bool SignerExpired = false, string? Detail = null)

Parameters

Status SecomSignatureStatus

Whether the signature matches.

Signer string

The signer certificate's subject name, when it could be read.

SignerTrusted bool?

True when the signer chains to one of the trust anchors, false when it does not, null when trust was not checked (no anchors were supplied, or the signature is not valid).

SignerExpired bool

True when the signer certificate is outside its validity period now.

Detail string

Why the check failed or was not possible, if it did.

Properties

Detail

Why the check failed or was not possible, if it did.

public string? Detail { get; init; }

Property Value

string

Signer

The signer certificate's subject name, when it could be read.

public string? Signer { get; init; }

Property Value

string

SignerExpired

True when the signer certificate is outside its validity period now.

public bool SignerExpired { get; init; }

Property Value

bool

SignerRevocation

Whether the signer's certificate, or a CA above it, has been revoked (#833). It is checked only for a trusted signer and only when a SecomRevocation is given; otherwise, and when no current CRL could be had, it is NotChecked. It is independent of SignerTrusted and SignerExpired.

public SecomRevocationStatus SignerRevocation { get; init; }

Property Value

SecomRevocationStatus

SignerTrusted

True when the signer chains to one of the trust anchors, false when it does not, null when trust was not checked (no anchors were supplied, or the signature is not valid).

public bool? SignerTrusted { get; init; }

Property Value

bool?

Status

Whether the signature matches.

public SecomSignatureStatus Status { get; init; }

Property Value

SecomSignatureStatus

TrustAnchor

The name of the trust anchor the signer chains to (e.g. "MCP MCC") when SignerTrusted is true.

public string? TrustAnchor { get; init; }

Property Value

string