Table of Contents

Method WithEncryptionLevel

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

WithEncryptionLevel(EncryptionLevel)

Overrides the TLS encryption setting inferred from the URI scheme.

public ConfigBuilder WithEncryptionLevel(EncryptionLevel level)

Parameters

level EncryptionLevel

Encrypted requires TLS for all connections; None disables TLS.

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.

Remarks

There are three mutually exclusive ways to configure TLS behaviour:

These approaches are mutually exclusive. Calling this method has no effect when a +s or +ssc URI scheme is used, as those schemes already imply a specific TLS and trust policy.