Table of Contents

Create Method

Definition

Namespace
Cuemon.AspNetCore.Authentication.Hmac
Assemblies
Cuemon.AspNetCore.Authentication.dll
Source
src/Cuemon.AspNetCore.Authentication/Hmac/HmacAuthorizationHeader.cs

Create(string, string, Action<AuthorizationHeaderOptions>)

Creates an instance of HmacAuthorizationHeader from the specified parameters.

public static HmacAuthorizationHeader Create(string authenticationScheme, string authorizationHeader, Action<AuthorizationHeaderOptions> setup = null)

Parameters

authenticationScheme string

The name of the authentication scheme.

authorizationHeader string

The raw HTTP authorization header.

setup Action<AuthorizationHeaderOptions>

The AuthorizationHeaderOptions which may be configured.

Returns

HmacAuthorizationHeader

An instance of HmacAuthorizationHeader.

Exceptions

ArgumentNullException

authenticationScheme cannot be null -or- authorizationHeader cannot be null.

ArgumentException

authenticationScheme cannot be empty or consist only of white-space characters -or- authorizationHeader cannot be empty or consist only of white-space characters.