---
title: ACAccountCredential
framework: accounts
role: symbol
role_heading: Class
path: accounts/acaccountcredential
---

# ACAccountCredential

A credential object that encapsulates the information needed to authenticate a user.

## Declaration

```swift
class ACAccountCredential
```

## Overview

Overview To create an account credential that uses the OAuth open authentication standard, use the init(oAuthToken:tokenSecret:) method.

## Topics

### Initializing Credentials

- [init(oAuthToken:tokenSecret:)](accounts/acaccountcredential/init(oauthtoken:tokensecret:)-6bfyf.md)
- [init(oAuth2Token:refreshToken:expiryDate:)](accounts/acaccountcredential/init(oauth2token:refreshtoken:expirydate:)-67hmd.md)

### Accessing Credential Properties

- [oauthToken](accounts/acaccountcredential/oauthtoken.md)

### Initializers

- [init(OAuth2Token:refreshToken:expiryDate:)](accounts/acaccountcredential/init(oauth2token:refreshtoken:expirydate:)-8r1ys.md)
- [init(OAuthToken:tokenSecret:)](accounts/acaccountcredential/init(oauthtoken:tokensecret:)-6328w.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Account Management

- [ACAccountStore](accounts/acaccountstore.md)
- [ACAccount](accounts/acaccount.md)
