<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WASharedSecret/ProtocolName",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware14WASharedSecretV12ProtocolNameV"
  },
  "title" : "WASharedSecret.ProtocolName"
}
-->

# WASharedSecret.ProtocolName

An object that uniquely identifies a particular network protocol and the pairing hanshake it uses for authentication.

```
struct ProtocolName
```

## Topics

### Initializers

[`init?(Data)`](/documentation/WiFiAware/WASharedSecret/ProtocolName/init(_:)-648hd)

Creates a custom protocol with the provided unique string.

[`init?(String)`](/documentation/WiFiAware/WASharedSecret/ProtocolName/init(_:)-7marr)

Creates a custom protocol name using the provided unique string.

### Type Properties

[`static let ipsecPSK: WASharedSecret.ProtocolName`](/documentation/WiFiAware/WASharedSecret/ProtocolName/ipsecPSK)

Derive a shared secret to bootstrap IPSec, using the resulting shared secret as the IPSec Pre-Shared Key.

[`static let tlsPSK: WASharedSecret.ProtocolName`](/documentation/WiFiAware/WASharedSecret/ProtocolName/tlsPSK)

Derive a shared secret to bootstrap TLS, using the resulting shared secret as a TLS Pre-Shared Key.

## Relationships

### Conforms To

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

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

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

[`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)