<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASImportableCredential/Passkey/init(credentialID:relyingPartyIdentifier:userName:userDisplayName:userHandle:key:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices22ASImportableCredentialO7PasskeyV12credentialID22relyingPartyIdentifier8userName0k7DisplayL00K6Handle3keyAE10Foundation4DataV_S3SA2Ntcfc"
  },
  "title" : "init(credentialID:relyingPartyIdentifier:userName:userDisplayName:userHandle:key:)"
}
-->

# init(credentialID:relyingPartyIdentifier:userName:userDisplayName:userHandle:key:)

Creates a passkey instance.

```
init(credentialID: Data, relyingPartyIdentifier: String, userName: String, userDisplayName: String, userHandle: Data, key: Data)
```

## Parameters

`credentialID`

The credential ID associated with this passkey.

`relyingPartyIdentifier`

The relying party identifier associated with the passkey

`userName`

The username associated with the passkey.

`userDisplayName`

The human-readable name associated with the passkey.

`userHandle`

The user handle associated with the passkey.

`key`

The private key associated with this passkey.

---

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)