<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEHotspotConfiguration"
  },
  "title" : "NEHotspotConfiguration"
}
-->

# NEHotspotConfiguration

Configuration settings for a Wi-Fi network.

```
class NEHotspotConfiguration
```

## Overview

The `NEHotspotConfiguration` class contains configuration properties and credentials required to connect to Wi-Fi networks.

## Topics

### Initializing a configuration

Create new hotspot configurations for open, WEP, WPA/WPA2 personal, WPA/WPA enterprise, and Hotspot 2.0 Wi-Fi networks.

[`init(ssid:)`](/documentation/NetworkExtension/NEHotspotConfiguration/init(ssid:)-9apfi)

Creates a new hotspot configuration, identified by an SSID, for an open Wi-Fi network.

[`init(ssid:passphrase:isWEP:)`](/documentation/NetworkExtension/NEHotspotConfiguration/init(ssid:passphrase:isWEP:)-3ll1v)

Creates a new hotspot configuration, identified by an SSID, for a protected WEP or WPA/WPA2 personal Wi-Fi network.

[`init(ssid:eapSettings:)`](/documentation/NetworkExtension/NEHotspotConfiguration/init(ssid:eapSettings:)-53cpf)

Creates a new hotspot configuration, identified by an SSID, for a WPA/WPA2 enterprise Wi-Fi network with EAP settings.

[`init(hs20Settings:eapSettings:)`](/documentation/NetworkExtension/NEHotspotConfiguration/init(hs20Settings:eapSettings:)-291m2)

Creates a new hotspot configuration, identified by a domain name, for a Hotspot 2.0 Wi-Fi network with HS 2.0 and EAP settings.

[`init(ssidPrefix:)`](/documentation/NetworkExtension/NEHotspotConfiguration/init(ssidPrefix:)-1v8bx)

Creates a new hotspot configuration, identified by an SSID prefix string, for an open Wi-Fi network.

[`init(ssidPrefix:passphrase:isWEP:)`](/documentation/NetworkExtension/NEHotspotConfiguration/init(ssidPrefix:passphrase:isWEP:)-7ttmu)

Creates a new hotspot configuration, identified by an SSID prefix string, for a protected WEP or WPA/WPA2 personal Wi-Fi network.

### Accessing configuration properties

[`ssid`](/documentation/NetworkExtension/NEHotspotConfiguration/ssid)

The SSID of an open, WEP, WPA/WPA2 personal, or WPA/WPA2 enterprise Wi-Fi network.

[`ssidPrefix`](/documentation/NetworkExtension/NEHotspotConfiguration/ssidPrefix)

The string used to match networks against a known SSID prefix.

[`lifeTimeInDays`](/documentation/NetworkExtension/NEHotspotConfiguration/lifeTimeInDays)

The number of days the network retains the associated configuration.

[`joinOnce`](/documentation/NetworkExtension/NEHotspotConfiguration/joinOnce)

Restricts the lifetime of a configuration to the operating status of the app that created it.

[`hidden`](/documentation/NetworkExtension/NEHotspotConfiguration/hidden)

A Boolean value that indicates the visibility of the SSID.



---

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)