public class XsuaaOAuth2TokenService extends AbstractOAuth2TokenService
| Constructor and Description |
|---|
XsuaaOAuth2TokenService() |
XsuaaOAuth2TokenService(org.springframework.web.client.RestOperations restOperations) |
XsuaaOAuth2TokenService(org.springframework.web.client.RestOperations restOperations,
TokenCacheConfiguration tokenCacheConfiguration) |
XsuaaOAuth2TokenService(TokenCacheConfiguration tokenCacheConfiguration) |
| 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, retrieveAccessTokenViaJwtBearerTokenGrant, retrieveAccessTokenViaPasswordGrant, retrieveAccessTokenViaRefreshTokenpublic XsuaaOAuth2TokenService()
public XsuaaOAuth2TokenService(@Nonnull TokenCacheConfiguration tokenCacheConfiguration)
public 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 © 2020. All rights reserved.