public class DefaultOAuth2TokenService extends AbstractOAuth2TokenService
| Constructor and Description |
|---|
DefaultOAuth2TokenService()
Deprecated.
in favor of
DefaultOAuth2TokenService(CloseableHttpClient) as it
doesn't support certificate based communication. Will be deleted
with version 3.0.0. |
DefaultOAuth2TokenService(org.apache.http.impl.client.CloseableHttpClient httpClient) |
DefaultOAuth2TokenService(org.apache.http.impl.client.CloseableHttpClient httpClient,
TokenCacheConfiguration tokenCacheConfiguration) |
DefaultOAuth2TokenService(TokenCacheConfiguration tokenCacheConfiguration)
Deprecated.
in favor of
DefaultOAuth2TokenService(CloseableHttpClient, TokenCacheConfiguration)
as it doesn't support certificate based communication. Will be
deleted with version 3.0.0. |
| 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 DefaultOAuth2TokenService()
DefaultOAuth2TokenService(CloseableHttpClient) as it
doesn't support certificate based communication. Will be deleted
with version 3.0.0.public DefaultOAuth2TokenService(@Nonnull org.apache.http.impl.client.CloseableHttpClient httpClient)
@Deprecated public DefaultOAuth2TokenService(@Nonnull TokenCacheConfiguration tokenCacheConfiguration)
DefaultOAuth2TokenService(CloseableHttpClient, TokenCacheConfiguration)
as it doesn't support certificate based communication. Will be
deleted with version 3.0.0.public DefaultOAuth2TokenService(@Nonnull org.apache.http.impl.client.CloseableHttpClient httpClient, @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 © 2021. All rights reserved.