Class ExactMatchAxisAuthenticator
- Namespace
- WINKOnvif.Core.Authentication
- Assembly
- WINKOnvif.Core.dll
WS-Security (WSSE) implementation for Axis cameras that exactly matches the provided working example
public class ExactMatchAxisAuthenticator : IAuthenticator
- Inheritance
-
ExactMatchAxisAuthenticator
- Implements
- Inherited Members
Methods
ApplyAuthentication<TClient, TContract>(TClient, OnvifCredentials)
Applies WS-Security 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
GenerateExactWsseHeader(OnvifCredentials)
Generates the exact WSSE Security XML fragment seen in the working example
public string GenerateExactWsseHeader(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