<!--
{
  "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/ASPasskeyRegistrationCredential/init(relyingParty:clientDataHash:credentialID:attestationObject:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASPasskeyRegistrationCredential(im)initWithRelyingParty:clientDataHash:credentialID:attestationObject:"
  },
  "title" : "init(relyingParty:clientDataHash:credentialID:attestationObject:)"
}
-->

# init(relyingParty:clientDataHash:credentialID:attestationObject:)

Initializes a passkey registration credential object.

```
init(relyingParty: String, clientDataHash: Data, credentialID: Data, attestationObject: Data)
```

## Parameters

`relyingParty`

The relying party associated with this passkey.

`clientDataHash`

A hash of the client data for this credential.

`credentialID`

The identifier for this credential.

`attestationObject`

The attestation object for this passkey, which may contain an attestation statement and authenticator data.

---

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)