Table of Contents

HmacAuthorizationHeaderBuilder<TAuthorizationHeaderBuilder> Class

Definition

Represents the base class from which all builder implementations that represent a HTTP HMAC Authentication header should derive.

public abstract class HmacAuthorizationHeaderBuilder<TAuthorizationHeaderBuilder> : AuthorizationHeaderBuilder<HmacAuthorizationHeader, TAuthorizationHeaderBuilder> where TAuthorizationHeaderBuilder : HmacAuthorizationHeaderBuilder<TAuthorizationHeaderBuilder>

Type Parameters

TAuthorizationHeaderBuilder
Inheritance
HmacAuthorizationHeaderBuilder<TAuthorizationHeaderBuilder>
Derived
Inherited Members

Constructors

Name Description
HmacAuthorizationHeaderBuilder(string)

Initializes a new instance of the HmacAuthorizationHeaderBuilder<TAuthorizationHeaderBuilder> class.

Methods

Name Description
AddClientId(string)

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

AddClientSecret(string)

Adds the client secret that is the private key of the signing process.

AddFromRequest(HttpRequest)

Adds the necessary fields that is part of an HTTP request.

AddSignedHeaders(params string[])

Adds the headers that will be part of the signing process.

ComputeCanonicalRequest()

Converts the request to a standardized (canonical) format and computes a message digest.

ComputeSignature()

Computes the signature of this instance using a series of hash-based message authentication codes (HMACs).