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
clientTClientThe client to apply authentication to
credentialsOnvifCredentialsCredentials to use for authentication
Type Parameters
TClientType of the client
TContractType of the service contract
GetAuthHeaderAsync(HttpRequestMessage, OnvifCredentials)
Gets authentication header for HTTP requests
Task<AuthenticationHeaderValue> GetAuthHeaderAsync(HttpRequestMessage request, OnvifCredentials credentials)
  Parameters
requestHttpRequestMessageThe HTTP request to authenticate
credentialsOnvifCredentialsCredentials to use for authentication
Returns
- Task<AuthenticationHeaderValue>
 Authentication header value