<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -",
    "macOS: 26.2.0 -",
    "visionOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/CredentialDataManager",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:31_AuthenticationServices_SwiftUI21CredentialDataManagerV"
  },
  "title" : "CredentialDataManager"
}
-->

# CredentialDataManager

```
@MainActor struct CredentialDataManager
```

## Topics

### Instance Methods

[`func reportAllAcceptedPublicKeyCredentials(relyingPartyIdentifier: String, userHandle: Data, acceptedCredentialIDs: [Data]) async throws`](/documentation/AuthenticationServices/CredentialDataManager/reportAllAcceptedPublicKeyCredentials(relyingPartyIdentifier:userHandle:acceptedCredentialIDs:))

Report a snapshot of all the credentialIDs that will be accepted for a `userHandle`. Credentials not present in the `acceptedCredentialIDs` may be removed or hidden by a password manager.
Relying party may choose to perform this periodically, e.g. on every sign in.
This information is shared with all password managers enabled in the system.

[`func reportPublicKeyCredentialUpdate(relyingPartyIdentifier: String, userHandle: Data, newName: String) async throws`](/documentation/AuthenticationServices/CredentialDataManager/reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:))

Report an update to a credential’s name, such as when changing the user name on an account.
This information is shared with all password managers enabled in the system.

[`func reportUnknownPublicKeyCredential(relyingPartyIdentifier: String, credentialID: Data) async throws`](/documentation/AuthenticationServices/CredentialDataManager/reportUnknownPublicKeyCredential(relyingPartyIdentifier:credentialID:))

Report that a specific credential is unknown or no longer accepted. The credential may be removed or hidden by a password manager.
This information is shared with all password managers enabled in the system.

[`func reportUnusedPasswordCredential(domain: String, userName: String) async throws`](/documentation/AuthenticationServices/CredentialDataManager/reportUnusedPasswordCredential(domain:userName:))

Report an unused password credential for a given domain and username. Password managers may remove or hide the password credential.
This information is shared with all password managers enabled in the system.

[`func save(password: ASPasswordCredential, for: ASAutoFillURLScope, title: String?) async throws`](/documentation/AuthenticationServices/CredentialDataManager/save(password:for:title:))

Save or update a password credential to the user’s preferred password manager in the system.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)