Table of Contents

Class Aws4HmacAuthorizationHeader

Namespace
Cuemon.Extensions.AspNetCore.Authentication.AwsSignature4
Assembly
Cuemon.Extensions.AspNetCore.Authentication.AwsSignature4.dll

Provides a representation of a HTTP AWS4-HMAC-SHA256 Authentication header.

public class Aws4HmacAuthorizationHeader : HmacAuthorizationHeader
Inheritance
Object
Aws4HmacAuthorizationHeader
Inherited Members

Constructors

Aws4HmacAuthorizationHeader(String, String, String, String)

Initializes a new instance of the Aws4HmacAuthorizationHeader class.

public Aws4HmacAuthorizationHeader(string clientId, string credentialScope, string signedHeaders, string signature)

Parameters

clientId String

The client identifier that is the public key of the signing process.

credentialScope String

The credential scope that defines the remote resource.

signedHeaders String

The headers that will be part of the signing process.

signature String

The signature that represents the integrity of this header.

Methods

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

System.ArgumentNullException

authorizationHeader cannot be null.

System.ArgumentException

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

See Also