Udostępnij przez


NSStream.SocketSecurityLevel Property

Definition

Gets or sets the security protocol 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 NegotiatedSsl which will pick the best available protocol between the client and the server.

Applies to