<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASPasskeyCredentialIdentity"
  },
  "title" : "ASPasskeyCredentialIdentity"
}
-->

# ASPasskeyCredentialIdentity

A description that uniquely identifies a particular passkey credential.

```
class ASPasskeyCredentialIdentity
```

## Topics

### Creating a credential identity

[`init(relyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/init(relyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)-7u7p1)

Initializes a passkey credential identity.

[`init(relyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/init(relyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)-9iuhb)

Creates and initializes a passkey credential identity.

[`initWithRelyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/initWithRelyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)

Initializes a passkey credential identity.

### Ordering credential identities

[`rank`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/rank)

An indicator that enables you to prioritize credential identities relative to each other.

### Associating a user

[`userName`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/userName)

The username of this passkey credential.

[`userHandle`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/userHandle)

The user handle of this passkey credential.

### Associating a relying party

[`relyingPartyIdentifier`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/relyingPartyIdentifier)

A string that identifies this identity’s relying party.

### Distinguishing identities

[`credentialID`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/credentialID)

The credential identifier for this passkey credential identity.

[`recordIdentifier`](/documentation/AuthenticationServices/ASPasskeyCredentialIdentity/recordIdentifier)

A string used to correlate this identity to a record in your app’s own database.



---

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)