@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OAuth2Credentials extends Object implements Serializable, Cloneable, StructuredPojo
The OAuth 2.0 credentials required for OAuth 2.0 authentication.
Constructor and Description |
---|
OAuth2Credentials() |
Modifier and Type | Method and Description |
---|---|
OAuth2Credentials |
clone() |
boolean |
equals(Object obj) |
String |
getAccessToken()
The access token used to access the connector on your behalf.
|
String |
getClientId()
The identifier for the desired client.
|
String |
getClientSecret()
The client secret used by the OAuth client to authenticate to the authorization server.
|
ConnectorOAuthRequest |
getOAuthRequest() |
String |
getRefreshToken()
The refresh token used to refresh an expired access token.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessToken(String accessToken)
The access token used to access the connector on your behalf.
|
void |
setClientId(String clientId)
The identifier for the desired client.
|
void |
setClientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
|
void |
setOAuthRequest(ConnectorOAuthRequest oAuthRequest) |
void |
setRefreshToken(String refreshToken)
The refresh token used to refresh an expired access token.
|
String |
toString()
Returns a string representation of this object.
|
OAuth2Credentials |
withAccessToken(String accessToken)
The access token used to access the connector on your behalf.
|
OAuth2Credentials |
withClientId(String clientId)
The identifier for the desired client.
|
OAuth2Credentials |
withClientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
|
OAuth2Credentials |
withOAuthRequest(ConnectorOAuthRequest oAuthRequest) |
OAuth2Credentials |
withRefreshToken(String refreshToken)
The refresh token used to refresh an expired access token.
|
public void setClientId(String clientId)
The identifier for the desired client.
clientId
- The identifier for the desired client.public String getClientId()
The identifier for the desired client.
public OAuth2Credentials withClientId(String clientId)
The identifier for the desired client.
clientId
- The identifier for the desired client.public void setClientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
clientSecret
- The client secret used by the OAuth client to authenticate to the authorization server.public String getClientSecret()
The client secret used by the OAuth client to authenticate to the authorization server.
public OAuth2Credentials withClientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
clientSecret
- The client secret used by the OAuth client to authenticate to the authorization server.public void setAccessToken(String accessToken)
The access token used to access the connector on your behalf.
accessToken
- The access token used to access the connector on your behalf.public String getAccessToken()
The access token used to access the connector on your behalf.
public OAuth2Credentials withAccessToken(String accessToken)
The access token used to access the connector on your behalf.
accessToken
- The access token used to access the connector on your behalf.public void setRefreshToken(String refreshToken)
The refresh token used to refresh an expired access token.
refreshToken
- The refresh token used to refresh an expired access token.public String getRefreshToken()
The refresh token used to refresh an expired access token.
public OAuth2Credentials withRefreshToken(String refreshToken)
The refresh token used to refresh an expired access token.
refreshToken
- The refresh token used to refresh an expired access token.public void setOAuthRequest(ConnectorOAuthRequest oAuthRequest)
oAuthRequest
- public ConnectorOAuthRequest getOAuthRequest()
public OAuth2Credentials withOAuthRequest(ConnectorOAuthRequest oAuthRequest)
oAuthRequest
- public String toString()
toString
in class Object
Object.toString()
public OAuth2Credentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.