Table of Contents

Class KeyExpirationAlert

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

Represents an alert for keys approaching expiration.

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

Constructors

KeyExpirationAlert(string, string, DateTimeOffset, int)

Represents an alert for keys approaching expiration.

public KeyExpirationAlert(string KeyId, string Provider, DateTimeOffset ExpiresAt, int DaysUntilExpiration)

Parameters

KeyId string

The identifier of the key nearing expiration.

Provider string

The KMS provider name.

ExpiresAt DateTimeOffset

When the key expires.

DaysUntilExpiration int

Days remaining until expiration.

Properties

DaysUntilExpiration

Days remaining until expiration.

public int DaysUntilExpiration { get; init; }

Property Value

int

ExpiresAt

When the key expires.

public DateTimeOffset ExpiresAt { get; init; }

Property Value

DateTimeOffset

KeyId

The identifier of the key nearing expiration.

public string KeyId { get; init; }

Property Value

string

Provider

The KMS provider name.

public string Provider { get; init; }

Property Value

string

Severity

Gets the severity based on days until expiration.

public AlertSeverity Severity { get; }

Property Value

AlertSeverity