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
-
AuthorizationHeaderBuilder<TAuthorizationHeader, TAuthorizationHeaderBuilder>
- Derived
- Inherited Members
Constructors
AuthorizationHeaderBuilder(String)
Initializes a new instance of the AuthorizationHeaderBuilder<TAuthorizationHeader, TAuthorizationHeaderBuilder> class.
protected AuthorizationHeaderBuilder(string authenticationScheme)
Parameters
authenticationScheme
StringThe 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
StringThe name of the field to add or update.
value
StringThe 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
.