Delegate MutualAuthenticationDelegate
Callback delegate that the application using the Ng911CadIfServer class can use to perform custom authentication and/or extended authorization.
Namespace: Ng911CadIfLib
Assembly: Ng911CadIfLib.dll
Syntax
public delegate bool MutualAuthenticationDelegate(X509Certificate2 certificate, X509Chain chain, SslPolicyErrors errors)
Parameters
| Type | Name | Description |
|---|---|---|
| X509Certificate2 | certificate | Client certificate provided with the WebSocket connection request. May be null if no client certificate was provided. |
| X509Chain | chain | Contains the chain of certificate authorities associated with the remote certificate. |
| SslPolicyErrors | errors | One or more errors associated with the remote certificate. |
Returns
| Type | Description |
|---|---|
| bool | Return true to allow the connection request or false to deny it. |