Skip to content

Structure

PostgresConnection.Configuration.TLS

The possible modes of operation for TLS encapsulation of a connection.
struct TLS

Topics

Instance Properties

  • isAllowed
    Whether TLS will be attempted on the connection (false only when mode is disable).
  • isEnforced
    Whether TLS will be enforced on the connection (true only when mode is require(_:)).
  • sslContext
    The NIOSSLContext that will be used. nil when TLS is disabled.

Type Properties

  • disable
    Do not try to create a TLS connection to the server.

Type Methods

  • prefer(_:)
    Try to create a TLS connection to the server. If the server supports TLS, create a TLS connection. If the server does not support TLS, create an insecure connection.
  • require(_:)
    Try to create a TLS connection to the server. If the server supports TLS, create a TLS connection. If the server does not support TLS, fail the connection creation.

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype