Click or drag to resize

TrustManagerValidateServerCertificate Method

Returns whether the endpoint should be trusted or not.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
public abstract bool ValidateServerCertificate(
	Uri uri,
	X509Certificate2 certificate,
	X509Chain chain,
	SslPolicyErrors sslPolicyErrors
)

Parameters

uri
Type: SystemUri
The uri towards which we're establishing connection
certificate
Type: X509Certificate2
The certificate presented by the other endpoint
chain
Type: X509Chain
The certificate chain that was built during the handshake
sslPolicyErrors
Type: System.Net.SecuritySslPolicyErrors
The initial policy errors that shows what problems were detected during the handshake

Return Value

Type: Boolean

Field Value

Type: Boolean
true if the connection should be established,

Field Value

Type: Boolean
false otherwise
See Also