---
title: "init(credentialID:relyingPartyIdentifier:userName:userDisplayName:userHandle:key:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/asimportablecredential/passkey/init(credentialid:relyingpartyidentifier:username:userdisplayname:userhandle:key:)"
---

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

Creates a passkey instance.

## Declaration

```swift
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.
