Table of Contents

Method WithTlsNegotiator

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

WithTlsNegotiator(ITlsNegotiator)

Sets a custom ITlsNegotiator to use when establishing a TLS connection. Note that this overrides the default TLS negotiator, which handles certificate-based trust, so if you use this method you should implement certificate validation yourself.

public ConfigBuilder WithTlsNegotiator(ITlsNegotiator tlsNegotiator)

Parameters

tlsNegotiator ITlsNegotiator

The ITlsNegotiator to use.

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.

WithTlsNegotiator(NegotiateTlsDelegate)

Sets the custom NegotiateTlsDelegate to call when establishing a TLS connection.

public ConfigBuilder WithTlsNegotiator(NegotiateTlsDelegate negotiateTls)

Parameters

negotiateTls NegotiateTlsDelegate

The NegotiateTlsDelegate to use.

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.

WithTlsNegotiator<T>()

Sets the type of custom ITlsNegotiator to use when establishing a TLS connection. Note that this overrides the default TLS negotiator, which handles certificate-based trust, so if you use this method you should implement certificate validation yourself.

public ConfigBuilder WithTlsNegotiator<T>() where T : ITlsNegotiator, new()

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.

Type Parameters

T

The ITlsNegotiator to use.