Class BtpServiceOptions.IasOptions
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.BtpServiceOptions.IasOptions
- Enclosing class:
- BtpServiceOptions
Factory class for Identity Authentication Service
 (
ServiceIdentifier.IDENTITY_AUTHENTICATION) options.- Since:
- 5.5.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classAnServiceBindingDestinationOptions.OptionsEnhancerthat contains the communication options for an IAS-based destination.static final classDeprecated.since 5.9.0.static final classAnServiceBindingDestinationOptions.OptionsEnhancerthat indicates whether no token is required for authenticating at the target system iff the authentication happens on behalf of a technical provider user.
- 
Method SummaryModifier and TypeMethodDescriptionwithApplicationName(String applicationName) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given application provider name when performing token retrievals.withConsumerClient(String consumerClientId) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given consumer client ID when performing token retrievals.withConsumerClient(String consumerClientId, String consumerTenantId) Deprecated.since 5.10.0.Creates an instance ofBtpServiceOptions.IasOptions.NoTokenForTechnicalProviderUser.withTargetUri(String targetUri) Deprecated.since 5.9.0.withTargetUri(URI targetUri) Deprecated.since 5.9.0.
- 
Method Details- 
withTargetUri@Nonnull @Deprecated public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withTargetUri(@Nonnull String targetUri) Deprecated.since 5.9.0. UseBtpServiceOptions.AuthenticationServiceOptions.withTargetUri(String)instead.Overwrites the target URI that is extracted from the IAS service binding.- Parameters:
- targetUri- The target URI to be used.
- Returns:
- An instance of ServiceBindingDestinationOptions.OptionsEnhancerthat is used when creating a destination from an IAS service binding and that contains the target URI.
 
- 
withTargetUri@Nonnull @Deprecated public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withTargetUri(@Nonnull URI targetUri) Deprecated.since 5.9.0. UseBtpServiceOptions.AuthenticationServiceOptions.withTargetUri(URI)instead.Overwrites the target URI that is extracted from the IAS service binding.- Parameters:
- targetUri- The target URI to be used.
- Returns:
- An instance of ServiceBindingDestinationOptions.OptionsEnhancerthat is used when creating a destination from an IAS service
 
- 
withoutTokenForTechnicalProviderUser@Nonnull public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withoutTokenForTechnicalProviderUser()Creates an instance ofBtpServiceOptions.IasOptions.NoTokenForTechnicalProviderUser.- Returns:
- A new BtpServiceOptions.IasOptions.NoTokenForTechnicalProviderUserinstance.
 
- 
withApplicationName@Nonnull public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withApplicationName(@Nonnull String applicationName) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given application provider name when performing token retrievals. This is needed in App-To-App communication scenarios.Hint: This option is mutually exclusive with withConsumerClient(String).- Parameters:
- applicationName- The name of the application provider to be used. This is the name that was used to register the to-be-called application within the IAS tenant.
- Returns:
- An instance of ServiceBindingDestinationOptions.OptionsEnhancerthat will lead to the given application provider being used when retrieving an authentication token from the IAS service.
 
- 
withConsumerClient@Nonnull public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withConsumerClient(@Nonnull String consumerClientId) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given consumer client ID when performing token retrievals. This is needed in Service-To-App communication scenarios.Hint: This option is mutually exclusive with withApplicationName(String).- Parameters:
- consumerClientId- The client ID of the consumer application. This client ID is usually extracted from an incoming IAS authentication token sent by the consumer application upon calling this application.
- Returns:
- An instance of ServiceBindingDestinationOptions.OptionsEnhancerthat will lead to the given consumer client ID being used when retrieving an authentication token from the IAS service.
 
- 
withConsumerClient@Deprecated @Nonnull public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withConsumerClient(@Nonnull String consumerClientId, @Nonnull String consumerTenantId) Deprecated.since 5.10.0. UsewithConsumerClient(String)instead.Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given consumer client and tenant ID when performing token retrievals. This is needed in Service-To-App communication scenarios.Hint: This option is mutually exclusive with withApplicationName(String).- Parameters:
- consumerClientId- The client ID of the consumer application. This client ID is usually extracted from an incoming IAS authentication token sent by the consumer application upon calling this application.
- consumerTenantId- The tenant ID of the consumer application. This tenant ID is usually extracted from an incoming IAS authentication token sent by the consumer application upon calling this application.
- Returns:
- An instance of ServiceBindingDestinationOptions.OptionsEnhancerthat will lead to the given consumer client ID and tenant ID being used when retrieving an authentication token from the IAS service.
 
 
-