Class OAuth2Options
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.OAuth2Options
Represents various configuration parameters for the OAuth2 destination creation.
- Since:
- 5.5.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder implementation that helps with creating customizedOAuth2Options
instances.static class
Configure the timeout applied to token retrieval. -
Field Summary
Modifier and TypeFieldDescriptionstatic final OAuth2Options
The defaultOAuth2Options
instance that does not alter the token retrieval process and does not use mTLS for the target system connection.static final ResilienceConfiguration.TimeLimiterConfiguration
The default timeout of 10 seconds for token retrieval. -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2Options.Builder
builder()
Returns a newOAuth2Options.Builder
instance that can be used to create a customizedOAuth2Options
instance.boolean
Returns additional parameters for the OAuth2 token flow.TheKeyStore
to use for building an mTLS connection towards the target system.A timeout to be applied for token retrieval.int
hashCode()
boolean
Indicates whether to skip the OAuth2 token flow.
-
Field Details
-
DEFAULT_TIMEOUT
The default timeout of 10 seconds for token retrieval.- Since:
- 5.12.0
-
DEFAULT
The defaultOAuth2Options
instance that does not alter the token retrieval process and does not use mTLS for the target system connection.
-
-
Method Details
-
skipTokenRetrieval
public boolean skipTokenRetrieval()Indicates whether to skip the OAuth2 token flow.- Returns:
true
if the token retrieval should be skipped,false
otherwise.
-
getAdditionalTokenRetrievalParameters
Returns additional parameters for the OAuth2 token flow. These parameters will be put into the URL-form-encoded body in addition to the regular authentication information (such as the clientid).- Returns:
- Additional parameters for the OAuth2 token request.
-
builder
Returns a newOAuth2Options.Builder
instance that can be used to create a customizedOAuth2Options
instance.- Returns:
- A new
OAuth2Options.Builder
.
-
equals
-
hashCode
public int hashCode() -
getTimeLimiter
A timeout to be applied for token retrieval.- Since:
- 5.12.0
-
getClientKeyStore
-