@Generated(value="software.amazon.awssdk:codegen") public final class OAuth2Credentials extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OAuth2Credentials.Builder,OAuth2Credentials>
The OAuth 2.0 credentials required for OAuth 2.0 authentication.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OAuth2Credentials.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accessToken()
The access token used to access the connector on your behalf.
|
static OAuth2Credentials.Builder |
builder() |
String |
clientId()
The identifier for the desired client.
|
String |
clientSecret()
The client secret used by the OAuth client to authenticate to the authorization server.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ConnectorOAuthRequest |
oAuthRequest()
Returns the value of the OAuthRequest property for this object.
|
String |
refreshToken()
The refresh token used to refresh an expired access token.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OAuth2Credentials.Builder> |
serializableBuilderClass() |
OAuth2Credentials.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String clientId()
The identifier for the desired client.
public final String clientSecret()
The client secret used by the OAuth client to authenticate to the authorization server.
public final String accessToken()
The access token used to access the connector on your behalf.
public final String refreshToken()
The refresh token used to refresh an expired access token.
public final ConnectorOAuthRequest oAuthRequest()
public OAuth2Credentials.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OAuth2Credentials.Builder,OAuth2Credentials>public static OAuth2Credentials.Builder builder()
public static Class<? extends OAuth2Credentials.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.