Table of Contents

Class DigestAuthenticator

Namespace
WINKOnvif.Core.Authentication
Assembly
WINKOnvif.Core.dll

Digest HTTP authentication implementation

public class DigestAuthenticator : IAuthenticator
Inheritance
DigestAuthenticator
Implements
Inherited Members

Constructors

DigestAuthenticator(HttpClient)

public DigestAuthenticator(HttpClient httpClient)

Parameters

httpClient HttpClient

Methods

ApplyAuthentication<TClient, TContract>(TClient, OnvifCredentials)

Applies Digest authentication to a SOAP client

public void ApplyAuthentication<TClient, TContract>(TClient client, OnvifCredentials credentials) where TClient : ClientBase<TContract> where TContract : class

Parameters

client TClient
credentials OnvifCredentials

Type Parameters

TClient
TContract

GetAuthHeaderAsync(HttpRequestMessage, OnvifCredentials)

Gets authentication header for HTTP requests

public Task<AuthenticationHeaderValue> GetAuthHeaderAsync(HttpRequestMessage request, OnvifCredentials credentials)

Parameters

request HttpRequestMessage

The HTTP request to authenticate

credentials OnvifCredentials

Credentials to use for authentication

Returns

Task<AuthenticationHeaderValue>

Authentication header value