public class XsuaaOAuth2TokenService extends AbstractOAuth2TokenService
RestOperations.| Constructor and Description |
|---|
XsuaaOAuth2TokenService()
Deprecated.
In favor of {
XsuaaOAuth2TokenService(RestOperations)
gets removed with the version 3.0.0, does not support certificate
based authentication |
XsuaaOAuth2TokenService(org.springframework.web.client.RestOperations restOperations) |
XsuaaOAuth2TokenService(org.springframework.web.client.RestOperations restOperations,
TokenCacheConfiguration tokenCacheConfiguration) |
XsuaaOAuth2TokenService(TokenCacheConfiguration tokenCacheConfiguration)
Deprecated.
In favor of {
XsuaaOAuth2TokenService(RestOperations)
gets removed with the version 3.0.0, does not support certificate
based authentication |
| Modifier and Type | Method and Description |
|---|---|
protected OAuth2TokenResponse |
requestAccessToken(URI tokenEndpointUri,
HttpHeaders headers,
Map<String,String> parameters)
Implements the HTTP client specific logic to perform an HTTP request and
handle the response.
|
clearCache, getCacheConfiguration, getCacheStatistics, getClock, retrieveAccessTokenViaClientCredentialsGrant, retrieveAccessTokenViaJwtBearerTokenGrant, retrieveAccessTokenViaJwtBearerTokenGrant, retrieveAccessTokenViaPasswordGrant, retrieveAccessTokenViaRefreshToken, retrieveAccessTokenViaUserTokenGrantclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitretrieveAccessTokenViaClientCredentialsGrant, retrieveAccessTokenViaClientCredentialsGrant, retrieveAccessTokenViaJwtBearerTokenGrant, retrieveAccessTokenViaPasswordGrant, retrieveAccessTokenViaRefreshToken@Deprecated public XsuaaOAuth2TokenService()
XsuaaOAuth2TokenService(RestOperations)
gets removed with the version 3.0.0, does not support certificate
based authentication@Deprecated public XsuaaOAuth2TokenService(@Nonnull TokenCacheConfiguration tokenCacheConfiguration)
XsuaaOAuth2TokenService(RestOperations)
gets removed with the version 3.0.0, does not support certificate
based authenticationpublic XsuaaOAuth2TokenService(@Nonnull org.springframework.web.client.RestOperations restOperations)
public XsuaaOAuth2TokenService(@Nonnull org.springframework.web.client.RestOperations restOperations, @Nonnull TokenCacheConfiguration tokenCacheConfiguration)
protected OAuth2TokenResponse requestAccessToken(URI tokenEndpointUri, HttpHeaders headers, Map<String,String> parameters) throws OAuth2ServiceException
AbstractOAuth2TokenServicerequestAccessToken in class AbstractOAuth2TokenServicetokenEndpointUri - the URI of the token endpoint the request must be sent to.headers - the HTTP headers that must be sent with the request.parameters - a map of request parameters that must be sent with the request.OAuth2ServiceException - when the request ot the token endpoint fails or returns an error
code.Copyright © 2022. All rights reserved.