Package com.sap.cloud.security.config
Interface Environment
public interface Environment
Central entry point to access the OAuth configuration
(
OAuth2ServiceConfiguration
) of a supported identity Service
.-
Method Summary
Modifier and TypeMethodDescriptionReturn OAuth service configuration of IAS identity service instance.int
Returns number of Xsuaa identity service instances.Return OAuth service configuration of Xsuaa identity service instance.In case there is only one Xsuaa identity service instance, this one gets returned.
-
Method Details
-
getXsuaaConfiguration
Return OAuth service configuration of Xsuaa identity service instance.- Returns:
- the OAuth service configuration or null, in case there is no instance
-
getIasConfiguration
Return OAuth service configuration of IAS identity service instance.- Returns:
- the OAuth service configuration or null, in case there is no instance
-
getNumberOfXsuaaConfigurations
int getNumberOfXsuaaConfigurations()Returns number of Xsuaa identity service instances.- Returns:
- the number Xsuaa identity service instances.
-
getXsuaaConfigurationForTokenExchange
In case there is only one Xsuaa identity service instance, this one gets returned. In case there are multiple bindings the one of plan "broker" gets returned.- Returns:
- the service configuration to be used for token exchange
- See Also:
-
getServiceConfigurations
Map<Service,Map<ServiceConstants.Plan, getServiceConfigurations()OAuth2ServiceConfiguration>>
-