Table of Contents

Create Method

Definition

Namespace
Codebelt.Extensions.AwsSignature4
Assemblies
Codebelt.Extensions.AwsSignature4.dll
Source
src/Codebelt.Extensions.AwsSignature4/Aws4HmacAuthorizationHeader.cs

Create(string, Action<AuthorizationHeaderOptions>)

Creates an instance of Aws4HmacAuthorizationHeader from the specified parameters.

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

Parameters

authorizationHeader string

The raw HTTP authorization header.

setup Action<AuthorizationHeaderOptions>

The AuthorizationHeaderOptions which may be configured.

Returns

HmacAuthorizationHeader

An instance of Aws4HmacAuthorizationHeader.

Exceptions

ArgumentNullException

authorizationHeader cannot be null.

ArgumentException

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