Share via


SecureRemotingValidateServerCertificateDelegate Delegate

Definition

Defines the callback that can be provided by the remote app (Client) for custom validation of remote player's(Server) certificate chain.

public delegate Microsoft.MixedReality.OpenXR.Remoting.SecureRemotingCertificateValidationResult SecureRemotingValidateServerCertificateDelegate(string hostName, X509Certificate2Collection serverCertificateChain, SecureRemotingCertificateValidationResult? systemValidationResult = default);
type SecureRemotingValidateServerCertificateDelegate = delegate of string * X509Certificate2Collection * Nullable<SecureRemotingCertificateValidationResult> -> SecureRemotingCertificateValidationResult
Public Delegate Function SecureRemotingValidateServerCertificateDelegate(hostName As String, serverCertificateChain As X509Certificate2Collection, Optional systemValidationResult As Nullable(Of SecureRemotingCertificateValidationResult) = Nothing) As SecureRemotingCertificateValidationResult 

Parameters

hostName
String

The name of the host the connection is being established with

serverCertificateChain
X509Certificate2Collection

The certificate chain that the server provides when initiating the secure connection

systemValidationResult
Nullable<SecureRemotingCertificateValidationResult>

The result of system validation is provided by remoting runtime if system validation is requested by the remote app

Return Value

Returns custom server certificated validation result.

Remarks

System validation (as the name suggests) is certificate validation based on the underlying system’s cryptographic APIs and certificate stores. Thus, results can vary depending on OS and local setup. The system validators are implemented in libbasix, which is owned by the RDV project. System validation in this API will forward to libbasix’ default validators for the respective platform

Applies to