Package | Description |
---|---|
com.sap.cloud.sdk.cloudplatform.connectivity | |
com.sap.cloud.sdk.cloudplatform.security |
Modifier and Type | Method and Description |
---|---|
ClientCredentials |
ScpCfService.getClientCredentials() |
ClientCredentials |
ClientCredentialsHttpDestination.getClientCredentials()
Returns the credentials to be used to retrieve the AuthToken.
|
Modifier and Type | Method and Description |
---|---|
Header |
XsuaaService.retrieveAccessTokenHeaderViaClientCredentialsGrant(URI xsuaaUri,
ClientCredentials credentials)
Retrieves an
AccessToken for a given pair of client credentials and returns it as part of an
Authorization header. |
Header |
XsuaaService.retrieveAccessTokenHeaderViaUserTokenExchange(URI xsuaaUri,
ClientCredentials credentials)
Retrieves a
AccessToken for a given pair of client credentials in the name of an authenticated user (to
be found in the JWT of the current request) with Refresh Token based authentication and returns the token as part
of an Authorization header. |
Header |
XsuaaService.retrieveAccessTokenHeaderViaUserTokenGrant(URI xsuaaUri,
ClientCredentials credentials)
Retrieves an
AccessToken for a given pair of client credentials in the name of an authenticated user (to
be found in the JWT of the current request) and returns it as part of an Authorization header. |
AccessToken |
XsuaaService.retrieveAccessTokenViaClientCredentialsGrant(URI xsuaaUri,
ClientCredentials credentials)
Retrieves an
AccessToken for a given pair of client credentials. |
AccessToken |
XsuaaService.retrieveAccessTokenViaUserTokenExchange(URI xsuaaUri,
ClientCredentials credentials)
Retrieves an
AccessToken through User Token Exchange for the currently active user token and the given
pair of client credentials. |
AccessToken |
XsuaaService.retrieveAccessTokenViaUserTokenGrant(URI xsuaaUri,
ClientCredentials credentials)
Retrieves an
AccessToken for the currently active user token and the client id. |
Constructor and Description |
---|
ClientCredentialsHttpDestination(HttpDestinationProperties baseDestination,
ClientCredentials clientCredentials,
ClientCredentialsGrantType grantType,
URI xsuaaUri,
XsuaaService xsuaaService)
Wraps the given destination and adds the authentication header retrieved from the given XSUAA service with the
given credentials via the given grant type.
|
ClientCredentialsHttpDestination(HttpDestinationProperties baseDestination,
ClientCredentials clientCredentials,
URI xsuaaUri,
XsuaaService xsuaaService)
Wraps the given destination and adds the authentication header retrieved from the given XSUAA service with the
given credentials via the
ClientCredentialsGrantType.CLIENT_CREDENTIALS grant type. |
ScpCfService(ScpCfServiceInfo serviceInfo,
URI authUri,
ClientCredentials clientCredentials,
String serviceLocationInfo)
Constructor open for extension.
|
ScpCfService(ScpCfServiceInfo serviceInfo,
URI authUri,
ClientCredentials clientCredentials,
String serviceLocationInfo,
boolean useProviderTenant)
Constructor open for extension.
|
Modifier and Type | Method and Description |
---|---|
static String |
BasicAuthHeaderEncoder.encodeClientCredentialsBase64(ClientCredentials credentials)
Encodes the given client credentials in Base64.
|
Copyright © 2020 SAP SE. All rights reserved.