Class SecomSignatureCheck
- Namespace
- EncDotNet.S100.Collections.Secom
- Assembly
- EncDotNet.S100.Collections.dll
The result of Verify(byte[], SecomExchangeMetadata?, SecomTrustAnchors?, DateTimeOffset?, SecomRevocation?).
public sealed record SecomSignatureCheck : IEquatable<SecomSignatureCheck>
- Inheritance
-
SecomSignatureCheck
- Implements
- Inherited Members
Constructors
SecomSignatureCheck(SecomSignatureStatus, string?, bool?, bool, string?)
The result of Verify(byte[], SecomExchangeMetadata?, SecomTrustAnchors?, DateTimeOffset?, SecomRevocation?).
public SecomSignatureCheck(SecomSignatureStatus Status, string? Signer = null, bool? SignerTrusted = null, bool SignerExpired = false, string? Detail = null)
Parameters
StatusSecomSignatureStatusWhether the signature matches.
SignerstringThe signer certificate's subject name, when it could be read.
SignerTrustedbool?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).
SignerExpiredboolTrue when the signer certificate is outside its validity period now.
DetailstringWhy 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
Signer
The signer certificate's subject name, when it could be read.
public string? Signer { get; init; }
Property Value
SignerExpired
True when the signer certificate is outside its validity period now.
public bool SignerExpired { get; init; }
Property Value
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
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
TrustAnchor
The name of the trust anchor the signer chains to (e.g. "MCP MCC") when SignerTrusted is true.
public string? TrustAnchor { get; init; }