Table of Contents

Interface IAuthenticator

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

Interface for authentication methods used with ONVIF services

public interface IAuthenticator

Methods

ApplyAuthentication<TClient, TContract>(TClient, OnvifCredentials)

Applies authentication to a SOAP client

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

Parameters

client TClient

The client to apply authentication to

credentials OnvifCredentials

Credentials to use for authentication

Type Parameters

TClient

Type of the client

TContract

Type of the service contract

GetAuthHeaderAsync(HttpRequestMessage, OnvifCredentials)

Gets authentication header for HTTP requests

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