public class CFEnvironment extends Object implements Environment
OAuth2ServiceConfiguration) of a
supported identity Service in the SAP CP Cloud Foundry Environment by
parsing the VCAP_SERVICES system environment variable.Environment.Type| Modifier and Type | Method and Description |
|---|---|
OAuth2ServiceConfiguration |
getIasConfiguration() |
static CFEnvironment |
getInstance() |
int |
getNumberOfXsuaaConfigurations() |
Environment.Type |
getType() |
OAuth2ServiceConfiguration |
getXsuaaConfiguration() |
OAuth2ServiceConfiguration |
getXsuaaConfigurationForTokenExchange() |
OAuth2ServiceConfiguration |
loadForServicePlan(Service service,
CFConstants.Plan plan)
Loads the configuration for a dedicated service plan.
|
public static CFEnvironment getInstance()
public OAuth2ServiceConfiguration getXsuaaConfiguration()
getXsuaaConfiguration in interface Environment@Nullable public OAuth2ServiceConfiguration getIasConfiguration()
getIasConfiguration in interface Environmentpublic int getNumberOfXsuaaConfigurations()
getNumberOfXsuaaConfigurations in interface Environmentpublic OAuth2ServiceConfiguration getXsuaaConfigurationForTokenExchange()
getXsuaaConfigurationForTokenExchange in interface Environmentpublic Environment.Type getType()
getType in interface Environment@Nullable public OAuth2ServiceConfiguration loadForServicePlan(Service service, CFConstants.Plan plan)
service - the name of the serviceplan - the name of the service planCopyright © 2020. All rights reserved.