SecurityProtocol
public struct SecurityProtocol: CustomStringConvertible
The possible security protocols that can be used to communicate with brokers.
-
The textual representation of the SecurityProtocol.
Declaration
Swift
public let description: String -
Don’t use a protocol and send messages in plaintext.
Declaration
Swift
public static let plaintext = SecurityProtocol(description: "plaintext") -
Use the Secure Sockets Layer (SSL) protocol.
Declaration
Swift
public static let ssl = SecurityProtocol(description: "ssl") -
Use the Simple Authentication and Security Layer (SASL) without SSL.
Declaration
Swift
public static let sasl_plaintext = SecurityProtocol(description: "sasl_plaintext") -
Use the Simple Authentication and Security Layer (SASL) with SSL.
Declaration
Swift
public static let sasl_ssl = SecurityProtocol(description: "sasl_ssl")
SecurityProtocol Structure Reference