HID APPROVE SDK  4.8
HID Approve SDK for Windows .NET
HIDIA.Transaction.ConnectionConfiguration Class Reference

Configuration of server connections More...

Public Member Functions

 ConnectionConfiguration ()
 Default constructor of ConnectionConfiguration instance More...
 
delegate bool ServerValidationCallback (HttpRequestMessage requestMessage, X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslErrors)
 Connection callback to handle server certificate validation. More...
 

Properties

ServerValidationCallback callback [get, set]
 Gets or sets a callback method to handle server certificate validation. More...
 
long Retry [get, set]
 Maximum number of connection retries before failing More...
 
long Timeout [get, set]
 Connection timeout in seconds More...
 

Detailed Description

Configuration of server connections

The ActivID Mobile SDK connects to an ActivID AS instance for authentication and provisioning purpose. This class enables the application consuming the SDK to configure some of the connection settings:

  • Timeout: the server connection timeout in seconds(default: 30, 0 means infinite)
  • Retry: the number of retries after connection fails(default: 0, 0 means no retry)
  • HttpFilter: custom filter for an HttpClient instance

Constructor & Destructor Documentation

◆ ConnectionConfiguration()

HIDIA.Transaction.ConnectionConfiguration.ConnectionConfiguration ( )
inline

Default constructor of ConnectionConfiguration instance

By default, connection timeout is 30 seconds, maximum number of retries is 0 (no retry) and no IHttpFilter is set.

Member Function Documentation

◆ ServerValidationCallback()

delegate bool HIDIA.Transaction.ConnectionConfiguration.ServerValidationCallback ( HttpRequestMessage  requestMessage,
X509Certificate2  certificate,
X509Chain  chain,
SslPolicyErrors  sslErrors 
)

Connection callback to handle server certificate validation.

For more details see system API https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclienthandler.servercertificatecustomvalidationcallback?view=net-6.0

Property Documentation

◆ callback

ServerValidationCallback HIDIA.Transaction.ConnectionConfiguration.callback
getset

Gets or sets a callback method to handle server certificate validation.

◆ Retry

long HIDIA.Transaction.ConnectionConfiguration.Retry
getset

Maximum number of connection retries before failing

◆ Timeout

long HIDIA.Transaction.ConnectionConfiguration.Timeout
getset

Connection timeout in seconds