<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWNetworkProfile",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:objc(cs)CWNetworkProfile"
  },
  "title" : "CWNetworkProfile"
}
-->

# CWNetworkProfile

Encapsulates an immutable network profile entry.

```
class CWNetworkProfile
```

## Topics

### Getting a network profile

[`-  init`](/documentation/CoreWLAN/CWNetworkProfile/init())

Creates and returns a CWNetworkProfile object.

[`-  initWithNetworkProfile:`](/documentation/CoreWLAN/CWNetworkProfile/init(networkProfile:))

Creates and returns a CWNetworkProfile object initialized with the given CWNetworkProfile object.

[`+  networkProfile`](/documentation/CoreWLAN/CWNetworkProfile/networkProfile)

Convenience method for getting a CWNetworkProfile object.

[`+  networkProfileWithNetworkProfile:`](/documentation/CoreWLAN/CWNetworkProfile/networkProfileWithNetworkProfile:)

Convenience method for getting a CWNetworkProfile object initialized with the given CWNetworkProfile object.

### Comparing network profiles

[`-  isEqualToNetworkProfile:`](/documentation/CoreWLAN/CWNetworkProfile/isEqual(to:))

Determine CWNetworkProfile object equality.

### Instance Properties

[`security`](/documentation/CoreWLAN/CWNetworkProfile/security)

The security mode for the network profile.

[`ssid`](/documentation/CoreWLAN/CWNetworkProfile/ssid)

The service set identifier (SSID) for the network profile, encoded as a string.

[`ssidData`](/documentation/CoreWLAN/CWNetworkProfile/ssidData)

The service set identifier (SSID) for the network profile, returned as data.

## Relationships

### Conforms To

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

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSMutableCopying`](/documentation/Foundation/NSMutableCopying)

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Inherited By

[`CWMutableNetworkProfile`](/documentation/CoreWLAN/CWMutableNetworkProfile)

---

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)