<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/init(relyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)-7u7p1",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "s:So27ASPasskeyCredentialIdentityC22AuthenticationServicesE22relyingPartyIdentifier8userName12credentialID0I6Handle06recordH0ABSS_SS10Foundation4DataVAKSSSgtcfc"
  },
  "title" : "init(relyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)"
}
-->

# init(relyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)

Initializes a passkey credential identity.

```
convenience init(relyingPartyIdentifier: String, userName: String, credentialID: Data, userHandle: Data, recordIdentifier: String? = nil)
```

## Parameters

`relyingPartyIdentifier`

The relying party identifier associated with this credential.

`userName`

The username associated with this credential.

`credentialID`

The credential identifier for this credential.

`userHandle`

The user handle associated with this credential.

`recordIdentifier`

The record identifier for this credential.

---

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)