Table of Contents

Class FipsDetectionResult

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Represents the result of FIPS 140-2 detection on the current system.

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

Properties

DetectedAt

Gets the timestamp when FIPS status was detected.

public DateTimeOffset DetectedAt { get; init; }

Property Value

DateTimeOffset

IsFipsEnabled

Gets a value indicating whether FIPS 140-2 mode is enabled.

public required bool IsFipsEnabled { get; init; }

Property Value

bool

Platform

Gets the platform identifier (e.g., "Windows", "Linux", "macOS").

public required string Platform { get; init; }

Property Value

string

ValidationDetails

Gets details about how FIPS status was validated.

public required string ValidationDetails { get; init; }

Property Value

string

Methods

Disabled(string, string)

Creates a result indicating FIPS is disabled.

public static FipsDetectionResult Disabled(string platform, string details)

Parameters

platform string

The platform identifier.

details string

Validation details.

Returns

FipsDetectionResult

A FIPS-disabled result.

Enabled(string, string)

Creates a result indicating FIPS is enabled.

public static FipsDetectionResult Enabled(string platform, string details)

Parameters

platform string

The platform identifier.

details string

Validation details.

Returns

FipsDetectionResult

A FIPS-enabled result.