Create Method
Definition
- Namespace
- Cuemon.AspNetCore.Authentication.Hmac
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
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
authenticationSchemestringThe name of the authentication scheme.
authorizationHeaderstringThe raw HTTP authorization header.
setupAction<AuthorizationHeaderOptions>The AuthorizationHeaderOptions which may be configured.
Returns
- HmacAuthorizationHeader
An instance of HmacAuthorizationHeader.
Exceptions
- ArgumentNullException
authenticationSchemecannot be null -or-authorizationHeadercannot be null.- ArgumentException
authenticationSchemecannot be empty or consist only of white-space characters -or-authorizationHeadercannot be empty or consist only of white-space characters.