Enum TlsMode
TLS mode to use during connection.
public enum TlsMode
Fields
Auto = 0For connections that use the "nats://" scheme and don't supply Client or CA Certificates - same as
PreferFor connections that use the "tls://" scheme or supply Client or CA Certificates - same asRequireDisable = 4Disabled mode will not attempt to upgrade the connection to TLS.
Implicit = 3Upgrades the connection to TLS as soon as the connection is established.
Prefer = 1if the Server supports TLS, then use it, otherwise use plain-text.
Require = 2Forces the connection to upgrade to TLS. if the Server does not support TLS, then fail the connection.