<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/DTLS/PeerAuthentication",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network4DTLSV18PeerAuthenticationO"
  },
  "title" : "DTLS.PeerAuthentication"
}
-->

# DTLS.PeerAuthentication

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

```
enum PeerAuthentication
```

## Overview

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

## Topics

### Enumeration Cases

[`case none`](/documentation/Network/DTLS/PeerAuthentication/none)

Do not authenticate the peer.

[`case optional`](/documentation/Network/DTLS/PeerAuthentication/optional)

Requests the peer certificate, but if none is provided, proceed with
the connection.

[`case required`](/documentation/Network/DTLS/PeerAuthentication/required)

Always authenticate the peer.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)