Structure

StreamSocketSecurityLevel

NSStream defines these string constants for specifying the secure-socket layer (SSL) security level.

Declaration

struct StreamSocketSecurityLevel

Overview

You access and set these values using the NSStreamSocketSecurityLevelKey property key.

Topics

Type Properties

static let negotiatedSSL: StreamSocketSecurityLevel

Specifies that the highest level security protocol that can be negotiated be set as the security protocol for a socket stream.

static let none: StreamSocketSecurityLevel

Specifies that no security level be set for a socket stream.

static let ssLv2: StreamSocketSecurityLevel

Specifies that SSL version 2 be set as the security protocol for a socket stream.

static let ssLv3: StreamSocketSecurityLevel

Specifies that SSL version 3 be set as the security protocol for a socket stream.

static let tlSv1: StreamSocketSecurityLevel

Specifies that TLS version 1 be set as the security protocol for a socket stream.

Relationships