# Class OAuth2ClientCredentials (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.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)
- [1.38.2](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.38.2/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)
- [1.37.0](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.37.0/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)
- [1.36.0](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.36.0/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)
- [1.34.1](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.34.1/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)
- [1.33.3](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.33.3/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)
- [1.32.1](https://docs.cloud.google.com/java/docs/reference/google-oauth-client/1.32.1/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)

    public class OAuth2ClientCredentials

OAuth 2 credentials found in the [Developer
Profile Page](http://www.dailymotion.com/profile/developer).

Once at the Developer Profile page, you will need to create a Daily Motion account if you do
not already have one. Click on "Create a new API Key". Enter "<http://127.0.0.1:8080/Callback>"
under "Callback URL" and select "Native Application" under "Application Profile". Enter a port
number other than 8080 if that is what you intend to use.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> OAuth2ClientCredentials

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Fields

### API_KEY

    public static final String API_KEY

Value of the "API Key".

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### API_SECRET

    public static final String API_SECRET

Value of the "API Secret".

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### DOMAIN

    public static final String DOMAIN

Domain name in the "Callback URL".

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### PORT

    public static final int PORT

Port in the "Callback URL".

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

## Static Methods

### errorIfNotSpecified()

    public static void errorIfNotSpecified()

## Constructors

### OAuth2ClientCredentials()

    public OAuth2ClientCredentials()