Class HmacAuthenticationHeaderValueFactory

The HmacAuthenticationHeaderValueFactory class creates 'Authorization' headers for requests by leveraging a configured HMAC algorithm.

Inheritance
System.Object
HmacAuthenticationHeaderValueFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common.Rest
Assembly: EPiServer.Social.Common.Rest.dll
Version: 1.5.4
Syntax
public class HmacAuthenticationHeaderValueFactory : IAuthenticationHeaderValueFactory

Constructors

HmacAuthenticationHeaderValueFactory(IHmacAlgorithm)

Constructor

Declaration
public HmacAuthenticationHeaderValueFactory(IHmacAlgorithm hmacAlgorithm)
Parameters
Type Name Description
IHmacAlgorithm hmacAlgorithm

Algorithm with which to sign requests

Methods

CreateAsync(HttpRequestMessage)

Creates an AuthenticationHeaderValue for the provided request, given the signing algorithm configured for this factory.

Declaration
public Task<AuthenticationHeaderValue> CreateAsync(HttpRequestMessage request)
Parameters
Type Name Description
System.Net.Http.HttpRequestMessage request

Request to be signed

Returns
Type Description
System.Threading.Tasks.Task<System.Net.Http.Headers.AuthenticationHeaderValue>

AuthenticationHeaderValue for the request

Implements

arrow_upward