Table of Contents

Class JwtSettingsValidator

Namespace
SEBT.Portal.Infrastructure.Configuration.Validators
Assembly
SEBT.Portal.Infrastructure.dll

Validates cross-field invariants on JwtSettings that data annotations cannot express. Range-only checks live on the settings type itself.

public class JwtSettingsValidator
Inheritance
object
JwtSettingsValidator

Methods

Validate(string?, JwtSettings)

Validates a specified named options instance (or all if name is null).

public ValidateOptionsResult Validate(string? name, JwtSettings options)

Parameters

name string

The name of the options instance being validated.

options JwtSettings

The options instance.

Returns

ValidateOptionsResult

The Microsoft.Extensions.Options.ValidateOptionsResult result.