Package com.sap.cds.mtx.impl
Class XsuaaParams
java.lang.Object
com.sap.cds.mtx.impl.XsuaaParams
Value class containing parameters of xsuua service instance
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXsuaaParams(String url, String clientId, String clientSecret) Deprecated.replaced by constructor with credentials.XsuaaParams(Map<String, Object> credentials) -
Method Summary
Modifier and TypeMethodDescriptioncom.sap.cloud.security.config.OAuth2ServiceConfigurationgetUrl()void
-
Field Details
-
CLIENTID
- See Also:
-
CLIENT_SECRET
- See Also:
-
URL
- See Also:
-
-
Constructor Details
-
XsuaaParams
Deprecated.replaced by constructor with credentials.- Parameters:
url- URL of xsuaa service instance (stored in VCAP_SERVICES)clientId- client id (stored in VCAP_SERVICES)clientSecret- client secret (stored in VCAP_SERVICES)
-
XsuaaParams
- Parameters:
credentials- Map with all credentials of xsuaa binding
-
-
Method Details
-
getUrl
- Returns:
- URL
-
updateUrl
- Parameters:
url- change URL after creation, needed in test cases.
-
getClientId
- Returns:
- client id
-
getOAuth2ServiceConfiguration
public com.sap.cloud.security.config.OAuth2ServiceConfiguration getOAuth2ServiceConfiguration()- Returns:
- OAuth2 service configuration
-