TechnologiesSecurity, Privacy & Authentication

Accounts

iOSmacOStvOSwatchOSvisionOS

Accounts manages user accounts and their stored credentials in the system Accounts database, brokering authenticated access to external services on iOS and macOS. You work with the database through ACAccountStore, which retrieves and saves ACAccount objects; each account carries an ACAccountType describing the service it belongs to and an ACAccountCredential holding its authentication material. When a credential must be refreshed, the framework reports the outcome with ACAccountCredentialRenewResult, and surfaces failures through ACErrorCode.

Accessing the Accounts Database 3

Read and write accounts and their types through the system Accounts database.

  • Cl
    ACAccountStore
    An object that provides access to and manages the accounts stored in the system Accounts database.
  • Cl
    ACAccount
    An object that represents a user account stored in the system Accounts database.
  • Cl
    ACAccountType
    An object that describes the service an account belongs to.

Authenticating Accounts 2

Hold and renew the credentials that authorize access to an account's service.

  • Cl
    ACAccountCredential
    An object that holds the authentication material used to access an account's service.
  • En
    ACAccountCredentialRenewResult
    Constants that report the outcome of a request to renew an account's credential.

Handling Errors 1

Identify failures reported while working with accounts and credentials.

  • St
    ACErrorCode
    Constants that identify errors encountered while accessing accounts and credentials.

Type Aliases 4

  • Ty
    ACAccountStoreSaveCompletionHandler
  • Ty
    ACAccountStoreRemoveCompletionHandler
  • Ty
    ACAccountStoreRequestAccessCompletionHandler
  • Ty
    ACAccountStoreCredentialRenewalHandler

Extends 1

NSNotification
← Security, Privacy & Authentication