Table of Contents

Class SecretRotationPolicy

Namespace
Excalibur.Data.ElasticSearch.Security
Assembly
Excalibur.Data.ElasticSearch.dll

Defines rotation policies for secrets and keys.

public sealed class SecretRotationPolicy
Inheritance
SecretRotationPolicy
Inherited Members

Remarks

Initializes a new instance of the SecretRotationPolicy class.

Constructors

SecretRotationPolicy(bool, TimeSpan?, TimeSpan?, int)

Defines rotation policies for secrets and keys.

public SecretRotationPolicy(bool enabled = false, TimeSpan? rotationInterval = null, TimeSpan? warningThreshold = null, int maxRetries = 3)

Parameters

enabled bool

Whether automatic rotation is enabled.

rotationInterval TimeSpan?

The interval between rotations.

warningThreshold TimeSpan?

The time before rotation to issue warnings.

maxRetries int

The maximum number of rotation retries.

Remarks

Initializes a new instance of the SecretRotationPolicy class.

Properties

Enabled

Gets a value indicating whether automatic rotation is enabled.

public bool Enabled { get; }

Property Value

bool

True if the secret should be automatically rotated, false otherwise.

MaxRetries

Gets the maximum number of rotation retries on failure.

public int MaxRetries { get; }

Property Value

int

The number of times to retry a failed rotation.

RotationInterval

Gets the interval between automatic rotations.

public TimeSpan RotationInterval { get; }

Property Value

TimeSpan

The time period between scheduled rotations.

WarningThreshold

Gets the warning threshold before rotation.

public TimeSpan WarningThreshold { get; }

Property Value

TimeSpan

The time before rotation to start issuing warnings.