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 Summary
Nested 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 Summary
Modifier and TypeMethodDescriptionwithApplicationName(String applicationName) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given "Dependency 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.withProviderClient(String providerClientId) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given provider client ID when performing token retrievals.withProviderClient(String providerClientId, String providerTenantId) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given provider client ID and provider tenant ID when performing token retrievals.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 "Dependency 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 "Dependency Name" to be used. This is the name that was used to register the dependency to an API of a provider 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. - See Also:
-
withProviderClient
@Nonnull public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withProviderClient(@Nonnull String providerClientId) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given provider client ID when performing token retrievals. This is needed in App-To-App communication scenarios.Hint: This option is mutually exclusive with
withConsumerClient(String).- Parameters:
providerClientId- Client ID of the provider application- Returns:
- An instance of
ServiceBindingDestinationOptions.OptionsEnhancerthat will lead to the given application provider being used when retrieving an authentication token from the IAS service. - See Also:
-
withProviderClient
@Nonnull public static ServiceBindingDestinationOptions.OptionsEnhancer<?> withProviderClient(@Nonnull String providerClientId, @Nonnull String providerTenantId) Creates anServiceBindingDestinationOptions.OptionsEnhancerthat instructs an IAS-based destination to use the given provider client ID and provider tenant ID when performing token retrievals. This is needed in App-To-App communication scenarios when having dependencies to different tenants of the same, multi-tenant provider application (fan-out / 1-N).Hint: This option is mutually exclusive with
withConsumerClient(String)- Parameters:
providerClientId- Client ID of the provider applicationproviderTenantId- Tenant ID of the provider application- Returns:
- An instance of
ServiceBindingDestinationOptions.OptionsEnhancerthat will lead to the given application provider being used when retrieving an authentication token from the IAS service. - See Also:
-
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.
-