Table of Contents

Class AuthorizationHeaderBuilder<TAuthorizationHeader, TAuthorizationHeaderBuilder>

Namespace
Cuemon.AspNetCore.Authentication
Assembly
Cuemon.AspNetCore.Authentication.dll

Represents the base class from which all implementations of authorization header builders should derive. Implements the AuthorizationHeaderBuilder

public abstract class AuthorizationHeaderBuilder<TAuthorizationHeader, TAuthorizationHeaderBuilder> : AuthorizationHeaderBuilder where TAuthorizationHeader : AuthorizationHeader where TAuthorizationHeaderBuilder : AuthorizationHeaderBuilder

Type Parameters

TAuthorizationHeader

The type of the authorization header result.

TAuthorizationHeaderBuilder

The type of the authorization header builder.

Inheritance
Object
AuthorizationHeaderBuilder<TAuthorizationHeader, TAuthorizationHeaderBuilder>
Derived
Inherited Members

Constructors

AuthorizationHeaderBuilder(String)

protected AuthorizationHeaderBuilder(string authenticationScheme)

Parameters

authenticationScheme String

The name of the authentication scheme.

Methods

AddOrUpdate(String, String)

Attempts to add or update an existing field with the provided name with the specified value.

public TAuthorizationHeaderBuilder AddOrUpdate(string name, string value)

Parameters

name String

The name of the field to add or update.

value String

The value of the field to add or update.

Returns

TAuthorizationHeaderBuilder

TAuthorizationHeaderBuilder that can be used to further build the header.

Build()

Builds an instance of TAuthorizationHeader that implements AuthorizationHeader.

public abstract TAuthorizationHeader Build()

Returns

TAuthorizationHeader

TAuthorizationHeader.