Class OAuth2DestinationBuilder

java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.OAuth2DestinationBuilder

@Beta public class OAuth2DestinationBuilder extends Object
Utility class to conveniently create an HttpDestination instance while automatically adding an authentication header retrieved from an OAuth2 service.
Since:
4.10.0
  • 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