@Beta public enum ScpCfDestinationTokenExchangeStrategy extends Enum<ScpCfDestinationTokenExchangeStrategy>
Enum Constant and Description |
---|
EXCHANGE_ONLY
Use this strategy if you know for sure that the requested destination requires a user token exchange for
the authentication.
|
LOOKUP_ONLY
Use this strategy if you are interested in reading only the destination's properties.
|
LOOKUP_THEN_EXCHANGE
Default strategy of performing the user token exchange.
|
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier() |
String |
toString() |
static ScpCfDestinationTokenExchangeStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScpCfDestinationTokenExchangeStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScpCfDestinationTokenExchangeStrategy LOOKUP_THEN_EXCHANGE
When this strategy is used, the ScpCfDestinationLoader
first performs a "look up" of the destination by
issuing a client credentials request to the destination service. The response then contains the destination,
which is needed to determine the actual authentication type. Afterwards, depending that authentication type, a
user token exchange might be performed automatically.
public static final ScpCfDestinationTokenExchangeStrategy LOOKUP_ONLY
Caution: The retrieved destination might not be suitable to actually connect to the target system because
the token exchange request is skipped when using this strategy, even if the destination demands an authentication
type that is based on the user token exchange (such as AuthenticationType.OAUTH2_JWT_BEARER
).
public static final ScpCfDestinationTokenExchangeStrategy EXCHANGE_ONLY
Caution: The ScpCfDestinationLoader
skips the initial "look up" request against the destination
service, which is usually needed to determine whether a user token exchange is needed. Instead, the user token
exchange is performed immediately, which might cause errors if the destination is not suited for that flow.
public static ScpCfDestinationTokenExchangeStrategy[] values()
for (ScpCfDestinationTokenExchangeStrategy c : ScpCfDestinationTokenExchangeStrategy.values()) System.out.println(c);
public static ScpCfDestinationTokenExchangeStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ScpCfDestinationTokenExchangeStrategy>
Copyright © 2021 SAP SE. All rights reserved.