Structure
PostgresConnection.Configuration.TLS
The possible modes of operation for TLS encapsulation of a connection.
struct TLS
Topics
Instance Properties
isAllowedWhether TLS will be attempted on the connection (falseonly when mode isdisable).isEnforcedWhether TLS will be enforced on the connection (trueonly when mode isrequire(_:)).sslContextTheNIOSSLContextthat will be used.nilwhen TLS is disabled.
Type Properties
disableDo 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.SendableSwift.SendableMetatype