Table of Contents

Class SimplifiedAxisAuthenticator

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

A simplified authenticator for Axis cameras that uses an extremely basic approach

public class SimplifiedAxisAuthenticator : IAuthenticator
Inheritance
SimplifiedAxisAuthenticator
Implements
Inherited Members

Methods

ApplyAuthentication<TClient, TContract>(TClient, OnvifCredentials)

Applies the simplest possible 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

GenerateSecurityHeader(OnvifCredentials)

Generates the simplest possible Security XML fragment

public string GenerateSecurityHeader(OnvifCredentials credentials)

Parameters

credentials OnvifCredentials

Returns

string

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