NSStream.SocketSecurityLevel Property

Definition

Controls the security protocol is used for the connection (none, SSL, TLS, negotiated).

public Foundation.NSStreamSocketSecurityLevel SocketSecurityLevel { get; set; }
member this.SocketSecurityLevel : Foundation.NSStreamSocketSecurityLevel with get, set

Property Value

The default does not use any security protocols.

Remarks

This setting allows developers to configure which security protocol is used to transfer the data on the stream, from nothing, to a specific version of Transport Layer Security (TLS) to its predecessor Secure Socket Layer (SSL) or the best possible.

The recommended value is NSStreamSocketSecurityLevel.NegotiatedSsl which will pick the best available protocol between the client and the server.

Applies to