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
TClientThe client to apply authentication to
credentials
OnvifCredentialsCredentials 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
HttpRequestMessageThe HTTP request to authenticate
credentials
OnvifCredentialsCredentials to use for authentication
Returns
- Task<AuthenticationHeaderValue>
Authentication header value