Skip to main content

CompositeUriValidator Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.UriValidation

CompositeUriValidator Class

Aggregates several IUriValidator instances under OR semantics: a URI is accepted as soon as any of the wrapped validators accepts it. Used to back a client whose configuration registers multiple equally-valid URIs (for example, several registered redirect URIs for the same client).

public sealed class CompositeUriValidator : Abblix.Oidc.Server.Features.UriValidation.IUriValidator

Inheritance System.Object → CompositeUriValidator

Implements IUriValidator

Constructors

CompositeUriValidator(IUriValidator[]) Constructor

Convenience constructor for a fixed-arity validator list.

public CompositeUriValidator(params Abblix.Oidc.Server.Features.UriValidation.IUriValidator[] validators);

Parameters

validators IUriValidator[]

CompositeUriValidator(IEnumerable<IUriValidator>) Constructor

Aggregates several IUriValidator instances under OR semantics: a URI is accepted as soon as any of the wrapped validators accepts it. Used to back a client whose configuration registers multiple equally-valid URIs (for example, several registered redirect URIs for the same client).

public CompositeUriValidator(System.Collections.Generic.IEnumerable<Abblix.Oidc.Server.Features.UriValidation.IUriValidator> validators);

Parameters

validators System.Collections.Generic.IEnumerable<IUriValidator>

The validators to combine; evaluation short-circuits on the first match.

Methods

CompositeUriValidator.IsValid(Uri) Method

Returns true as soon as any wrapped validator accepts uri; returns false only when every validator rejects it.

public bool IsValid(System.Uri uri);

Parameters

uri System.Uri

The URI to validate.

Implements IsValid(Uri)

Returns

System.Boolean