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
TClientcredentials
OnvifCredentials
Type Parameters
TClient
TContract
GenerateSecurityHeader(OnvifCredentials)
Generates the simplest possible Security XML fragment
public string GenerateSecurityHeader(OnvifCredentials credentials)
Parameters
credentials
OnvifCredentials
Returns
GetAuthHeaderAsync(HttpRequestMessage, OnvifCredentials)
Gets authentication header for HTTP requests
public Task<AuthenticationHeaderValue> GetAuthHeaderAsync(HttpRequestMessage request, OnvifCredentials credentials)
Parameters
request
HttpRequestMessageThe HTTP request to authenticate
credentials
OnvifCredentialsCredentials to use for authentication
Returns
- Task<AuthenticationHeaderValue>
Authentication header value