# Package com.google.api.client.extensions.java6.auth.oauth2 (1.39.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.39.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2)
- [1.38.2](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.38.2/com.google.api.client.extensions.java6.auth.oauth2)
- [1.37.0](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.37.0/com.google.api.client.extensions.java6.auth.oauth2)
- [1.36.0](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.36.0/com.google.api.client.extensions.java6.auth.oauth2)
- [1.34.1](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.34.1/com.google.api.client.extensions.java6.auth.oauth2)
- [1.33.3](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.33.3/com.google.api.client.extensions.java6.auth.oauth2)
- [1.32.1](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.32.1/com.google.api.client.extensions.java6.auth.oauth2)
OAuth 2.0 utilities that help simplify the authorization flow on Java 6.

## Classes

### [AbstractPromptReceiver](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.AbstractPromptReceiver)

OAuth 2.0 abstract verification code receiver that prompts user to paste the code copied from the
browser.

Implementation is thread-safe.

### [AuthorizationCodeInstalledApp](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp)

OAuth 2.0 authorization code flow for an installed Java application that persists end-user
credentials.

Implementation is thread-safe.

### [AuthorizationCodeInstalledApp.DefaultBrowser](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp.DefaultBrowser)

Default browser that just delegates to [AuthorizationCodeInstalledApp#browse(String)](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp#com_google_api_client_extensions_java6_auth_oauth2_AuthorizationCodeInstalledApp_browse_java_lang_String_).

### [FileCredentialStore](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FileCredentialStore) (deprecated)

**Deprecated.** *(to be removed in the future) Use FileDataStoreFactory with [StoredCredential](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.auth.oauth2.StoredCredential) instead, optionally using [#migrateTo(FileDataStoreFactory)](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FileCredentialStore#com_google_api_client_extensions_java6_auth_oauth2_FileCredentialStore_migrateTo_com_google_api_client_util_store_FileDataStoreFactory_) or
[#migrateTo(DataStore)](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FileCredentialStore#com_google_api_client_extensions_java6_auth_oauth2_FileCredentialStore_migrateTo_com_google_api_client_util_store_DataStore_com_google_api_client_auth_oauth2_StoredCredential__) to migrating an existing [FileCredentialStore](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FileCredentialStore).*

Beta   

Thread-safe file implementation of a credential store.

### [FilePersistedCredential](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FilePersistedCredential) (deprecated)

**Deprecated.** *(to be removed in the future) Use FileDataStoreFactory instead.*

Beta   

Persisted credential implementation to be used exclusively with [FileCredentialStore](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FileCredentialStore).

### [FilePersistedCredentials](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FilePersistedCredentials) (deprecated)

**Deprecated.** *(to be removed in the future) Use FileDataStoreFactory instead.*

Beta   

Persisted credential implementation to be used exclusively with [FileCredentialStore](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.FileCredentialStore).

## Interfaces

### [AuthorizationCodeInstalledApp.Browser](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp.Browser)

Helper interface to allow caller to browse.

### [VerificationCodeReceiver](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/latest/com.google.api.client.extensions.java6.auth.oauth2.VerificationCodeReceiver)

OAuth 2.0 verification code receiver.

Implementation should be thread-safe.