<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASPasswordCredentialIdentity",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASPasswordCredentialIdentity"
  },
  "title" : "ASPasswordCredentialIdentity"
}
-->

# ASPasswordCredentialIdentity

A description that uniquely identifies a particular password credential.

```
class ASPasswordCredentialIdentity
```

## Topics

### Creating a credential identity

[`identityWithServiceIdentifier:user:recordIdentifier:`](/documentation/AuthenticationServices/ASPasswordCredentialIdentity/identityWithServiceIdentifier:user:recordIdentifier:)

Creates and returns a password credential identity object with a service identifier.

[`init(serviceIdentifier:user:recordIdentifier:)`](/documentation/AuthenticationServices/ASPasswordCredentialIdentity/init(serviceIdentifier:user:recordIdentifier:))

Initializes a password credential identity.

[`ASCredentialServiceIdentifier`](/documentation/AuthenticationServices/ASCredentialServiceIdentifier)

An identifier representing a particular service for which the user needs a credential, like a web site.

### Ordering credential identities

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

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

### Associating a user

[`user`](/documentation/AuthenticationServices/ASPasswordCredentialIdentity/user)

The username associated with the credential.

### Distinguishing identities

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

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

[`serviceIdentifier`](/documentation/AuthenticationServices/ASPasswordCredentialIdentity/serviceIdentifier)

An identifier that helps the system know with which apps or websites to associate 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)