---
title: TLS.PeerAuthentication
framework: network
role: symbol
role_heading: Enumeration
path: network/tls/peerauthentication
---

# TLS.PeerAuthentication

PeerAuthentication specifies how to authenticate the peer end of the connection.

## Declaration

```swift
enum PeerAuthentication
```

## Overview

Overview For clients, the default is none. For servers, the default is required.

## Topics

### Enumeration Cases

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

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
