Table of Contents

Struct AuditChainVerificationResult

Namespace
Excalibur.AuditLogging
Assembly
Excalibur.AuditLogging.Abstractions.dll

The outcome of verifying an audit hash-chain.

public readonly record struct AuditChainVerificationResult : IEquatable<AuditChainVerificationResult>
Implements
Inherited Members

Constructors

AuditChainVerificationResult(bool, int, AuditChainBreak)

The outcome of verifying an audit hash-chain.

public AuditChainVerificationResult(bool IsValid, int FirstBrokenIndex, AuditChainBreak Break)

Parameters

IsValid bool

true when every link verifies and chains correctly.

FirstBrokenIndex int

The zero-based index of the first link that failed verification, or -1 when the chain is valid. When Break is SuccessorLinkBroken the break is at the successor, one past the last in-range link, so this is the number of links examined.

Break AuditChainBreak

What kind of break was found, or None.

Properties

Break

What kind of break was found, or None.

public AuditChainBreak Break { get; init; }

Property Value

AuditChainBreak

FirstBrokenIndex

The zero-based index of the first link that failed verification, or -1 when the chain is valid. When Break is SuccessorLinkBroken the break is at the successor, one past the last in-range link, so this is the number of links examined.

public int FirstBrokenIndex { get; init; }

Property Value

int

IsValid

true when every link verifies and chains correctly.

public bool IsValid { get; init; }

Property Value

bool