Bewerken

Delen via


NSStreamSocketSecurityLevel Enum

Definition

The security protocol to use for an NSStream.

public enum NSStreamSocketSecurityLevel
type NSStreamSocketSecurityLevel = 
Inheritance
NSStreamSocketSecurityLevel

Fields

Name Value Description
None 0

Do not use any security protocol.

SslV2 1

Require the use of SSLv2.

SslV3 2

Require the use of SSLv3.

TlsV1 3

Require the use of TLSv1.

NegotiatedSsl 4

Indicates that the two parties should negotiate a protocol, and it should use the most secure socket protocol available between the client and the server.

Unknown 5

The protocol is not known (can only happen if you build using an old SDK and run on a new device, and you have set the setting to "negotiated" and then you read the value back).

Remarks

This value controls which security protocol an NSStream uses to transfer the data on the stream, from nothing, to a specific version of SSL or TLS, or best possible.

Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols designed to provide communication security over streams.

Applies to