public static interface OAuthCredentials.Builder extends SdkPojo, CopyableBuilder<OAuthCredentials.Builder,OAuthCredentials>
| Modifier and Type | Method and Description |
|---|---|
OAuthCredentials.Builder |
accessToken(String accessToken)
The access token used to access protected SAPOData resources.
|
OAuthCredentials.Builder |
clientId(String clientId)
The identifier for the desired client.
|
OAuthCredentials.Builder |
clientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
|
OAuthCredentials.Builder |
oAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
default OAuthCredentials.Builder |
oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
OAuthCredentials.Builder |
refreshToken(String refreshToken)
The refresh token used to refresh expired access token.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildOAuthCredentials.Builder clientId(String clientId)
The identifier for the desired client.
clientId - The identifier for the desired client.OAuthCredentials.Builder clientSecret(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.OAuthCredentials.Builder accessToken(String accessToken)
The access token used to access protected SAPOData resources.
accessToken - The access token used to access protected SAPOData resources.OAuthCredentials.Builder refreshToken(String refreshToken)
The refresh token used to refresh expired access token.
refreshToken - The refresh token used to refresh expired access token.OAuthCredentials.Builder oAuthRequest(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.default OAuthCredentials.Builder oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
This is a convenience method that creates an instance of theConnectorOAuthRequest.Builder avoiding
the need to create one manually via ConnectorOAuthRequest.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to oAuthRequest(ConnectorOAuthRequest).
oAuthRequest - a consumer that will call methods on ConnectorOAuthRequest.BuilderoAuthRequest(ConnectorOAuthRequest)Copyright © 2023. All rights reserved.