Table of Contents

HmacAuthorizationHeaderBuilder Constructor

Definition

HmacAuthorizationHeaderBuilder(string, KeyedCryptoAlgorithm, UnkeyedCryptoAlgorithm)

Initializes a new instance of the HmacAuthorizationHeaderBuilder class.

public HmacAuthorizationHeaderBuilder(string authenticationScheme = "HMAC", KeyedCryptoAlgorithm hmacAlgorithm = KeyedCryptoAlgorithm.HmacSha256, UnkeyedCryptoAlgorithm algorithm = UnkeyedCryptoAlgorithm.Sha256)

Parameters

authenticationScheme string

The name of the authentication scheme. Default is HMAC.

hmacAlgorithm KeyedCryptoAlgorithm

The algorithm to use when computing the final signature of the HMAC Authentication header.

algorithm UnkeyedCryptoAlgorithm

The algorithm to use when computing in-between signatures as part of the final signing of the HMAC Authentication header.