---
schema_version: "1"
id: e69e7ce93bdfe093b5ace83f9b495e315a25dddf6c6493119b9b1a724b103c77
title: Android Authentication Overview
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/android/authentication-overview-android.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/authentication-overview-android.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4f1baaf8919dfefdf24f6c9f9811dc9e01c9e5b941e3979a49ffe184f7e881b9
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# Android Authentication Overview

Authentication interfaces and credential management for the Agentforce Android SDK.

## Authentication Classes

- **[AgentforceAuthCredentialProvider](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-auth-credential-provider-android.md)** - Credential provider interface
- **[AgentforceAuthCredentials](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-auth-credentials-android.md)** - Authentication credentials structure

## Authentication Types

### OAuth Authentication

- **Access Token**: OAuth 2.0 access token for API authentication
- **Refresh Token**: Token for refreshing expired access tokens
- **Expiration**: Token expiration time and refresh logic

### Org JWT Authentication

- **JWT Token**: JSON Web Token for organization authentication
- **Claims**: User and organization claims within the JWT
- **Validation**: Token validation and security checks

## Implementation Patterns

### Credential Provider

```kotlin
class MyCredentialProvider : AgentforceAuthCredentialProvider {
    override fun getCredentials(): AgentforceAuthCredentials {
        // Return current authentication credentials
    }
}
```

### Credential Management

- **Token Refresh**: Automatic token refresh when expired
- **Security**: Secure storage and transmission of credentials
- **Validation**: Credential validation before API calls

## Next Steps

- **Configuration**: See [Configuration Overview](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/configuration-overview-android.md) for setup
- **Data Models**: See [Data Models Overview](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/data-models-overview-android.md) for message handling
- **Integration**: See [Android Development](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/development-android.md) for architecture patterns
