@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OAuthCredentials extends Object implements Serializable, Cloneable, StructuredPojo
The OAuth credentials required for OAuth type authentication.
Constructor and Description |
---|
OAuthCredentials() |
Modifier and Type | Method and Description |
---|---|
OAuthCredentials |
clone() |
boolean |
equals(Object obj) |
String |
getAccessToken()
The access token used to access protected SAPOData resources.
|
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()
The OAuth requirement needed to request security tokens from the connector endpoint.
|
String |
getRefreshToken()
The refresh token used to refresh 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 protected SAPOData resources.
|
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)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
void |
setRefreshToken(String refreshToken)
The refresh token used to refresh expired access token.
|
String |
toString()
Returns a string representation of this object.
|
OAuthCredentials |
withAccessToken(String accessToken)
The access token used to access protected SAPOData resources.
|
OAuthCredentials |
withClientId(String clientId)
The identifier for the desired client.
|
OAuthCredentials |
withClientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
|
OAuthCredentials |
withOAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
OAuthCredentials |
withRefreshToken(String refreshToken)
The refresh token used to refresh 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 OAuthCredentials 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 OAuthCredentials 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 protected SAPOData resources.
accessToken
- The access token used to access protected SAPOData resources.public String getAccessToken()
The access token used to access protected SAPOData resources.
public OAuthCredentials withAccessToken(String accessToken)
The access token used to access protected SAPOData resources.
accessToken
- The access token used to access protected SAPOData resources.public void setRefreshToken(String refreshToken)
The refresh token used to refresh expired access token.
refreshToken
- The refresh token used to refresh expired access token.public String getRefreshToken()
The refresh token used to refresh expired access token.
public OAuthCredentials withRefreshToken(String refreshToken)
The refresh token used to refresh expired access token.
refreshToken
- The refresh token used to refresh expired access token.public void setOAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
oAuthRequest
- The OAuth requirement needed to request security tokens from the connector endpoint.public ConnectorOAuthRequest getOAuthRequest()
The OAuth requirement needed to request security tokens from the connector endpoint.
public OAuthCredentials withOAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
oAuthRequest
- The OAuth requirement needed to request security tokens from the connector endpoint.public String toString()
toString
in class Object
Object.toString()
public OAuthCredentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.