---
title: TLS
framework: network
role: symbol
role_heading: Structure
path: network/tls
---

# TLS

The system definition of the Transport Layer Security (TLS) protocol.

## Declaration

```swift
struct TLS
```

## Overview

Overview Supports sending and receiving encrypted byte streams.

## Topics

### Initializers

- [init()](network/tls/init().md)
- [init(_:)](network/tls/init(_:).md)

### Instance Methods

- [applicationProtocols(_:)](network/tls/applicationprotocols(_:).md)
- [certificateValidator(_:)](network/tls/certificatevalidator(_:).md)
- [cipherSuiteGroups(_:)](network/tls/ciphersuitegroups(_:).md)
- [cipherSuites(_:)](network/tls/ciphersuites(_:).md)
- [earlyDataEnabled(_:)](network/tls/earlydataenabled(_:).md)
- [localIdentity(_:)](network/tls/localidentity(_:).md)
- [peerAuthentication(_:)](network/tls/peerauthentication(_:).md)
- [ticketsEnabled(_:)](network/tls/ticketsenabled(_:).md)
- [version(min:max:)](network/tls/version(min:max:).md)

### Enumerations

- [TLS.PeerAuthentication](network/tls/peerauthentication.md)

## Relationships

### Conforms To

- [NetworkProtocolOptions](network/networkprotocoloptions.md)
- [OneToOneProtocol](network/onetooneprotocol.md)
- [StreamProtocol](network/streamprotocol.md)
