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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder implementation that helps with creating customizedOAuth2Optionsinstances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OAuth2OptionsThe defaultOAuth2Optionsinstance that does not alter the token retrieval process and does not use mTLS for the target system connection. -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2Options.Builderbuilder()Returns a newOAuth2Options.Builderinstance that can be used to create a customizedOAuth2Optionsinstance.booleanReturns additional parameters for the OAuth2 token flow.TheKeyStoreto use for building an mTLS connection towards the target system.inthashCode()booleanIndicates whether to skip the OAuth2 token flow.
-
Field Details
-
DEFAULT
The defaultOAuth2Optionsinstance 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:
trueif the token retrieval should be skipped,falseotherwise.
-
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.Builderinstance that can be used to create a customizedOAuth2Optionsinstance.- Returns:
- A new
OAuth2Options.Builder.
-
equals
-
hashCode
public int hashCode() -
getClientKeyStore
-