Class DestinationUtility

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

@Beta public final class DestinationUtility extends Object
Utility class for destination related functionality.

This class is meant for internal usage only.

Since:
4.6.0
  • Method Details

    • requiresUserTokenExchange

      public static boolean requiresUserTokenExchange(@Nonnull DestinationProperties destination)
      Helper method to identify if a destination requires user token exchange
      Parameters:
      destination - The destination to be checked
      Returns:
      a boolean value depending on if the destination requires user token exchange
    • requiresUserTokenExchange

      public static boolean requiresUserTokenExchange(@Nonnull AuthenticationType authType, @Nullable String systemUser)
      Helper method to identify if an AuthenticationType requires user token exchange
      Parameters:
      authType - The AuthenticationType to be examined
      systemUser - The SystemUser property value maintained in a destination
      Returns:
      a boolean value depending on if the authentication type requires user token exchange