Class OAuth2DestinationBuilder
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.OAuth2DestinationBuilder
Utility class to conveniently create an
HttpDestination
instance while automatically adding
an authentication header retrieved from an OAuth2 service.- Since:
- 4.10.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Helper interface to serve mandatory input for OAuth2 token endpoint.static interface
Helper interface to serve mandatory input for OAuth2 client identity and OAuth2 token representative. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionforTargetUrl
(String targetUrl) Static factory method to initialize a fluent API builder.
-
Constructor Details
-
OAuth2DestinationBuilder
public OAuth2DestinationBuilder()
-
-
Method Details
-
forTargetUrl
@Nonnull public static OAuth2DestinationBuilder.BuilderWithTargetUrl forTargetUrl(@Nonnull String targetUrl) Static factory method to initialize a fluent API builder.- Parameters:
targetUrl
- The destination target URL.- Returns:
- A new fluent API builder instance.
- Since:
- 4.10.0
-