---
title: DTLS.PeerAuthentication
framework: Network
role: symbol
role_heading: Enumeration
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: network/dtls/peerauthentication
---

# DTLS.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

- [DTLS.PeerAuthentication.none](network/dtls/peerauthentication/none.md)
- [DTLS.PeerAuthentication.optional](network/dtls/peerauthentication/optional.md)
- [DTLS.PeerAuthentication.required](network/dtls/peerauthentication/required.md)

## Relationships

### Conforms To

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