Modifier and Type | Method and Description |
---|---|
protected OAuth2AccessToken |
OAuth2RestTemplate.acquireAccessToken(OAuth2ClientContext oauth2Context) |
OAuth2AccessToken |
OAuth2RestTemplate.getAccessToken()
Acquire or renew an access token for the current context if necessary.
|
OAuth2AccessToken |
DefaultOAuth2ClientContext.getAccessToken() |
OAuth2AccessToken |
OAuth2RestOperations.getAccessToken() |
OAuth2AccessToken |
OAuth2ClientContext.getAccessToken() |
Modifier and Type | Method and Description |
---|---|
protected URI |
OAuth2RestTemplate.appendQueryParameter(URI uri,
OAuth2AccessToken accessToken) |
void |
DefaultOAuth2ClientContext.setAccessToken(OAuth2AccessToken accessToken) |
void |
OAuth2ClientContext.setAccessToken(OAuth2AccessToken accessToken) |
Constructor and Description |
---|
DefaultOAuth2ClientContext(OAuth2AccessToken accessToken) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
OAuth2ContextSetup.getAccessToken()
Get the current access token.
|
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
ClientTokenServices.getAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication)
Retrieve the access token for a given resource and user authentication (my be null).
|
OAuth2AccessToken |
JdbcClientTokenServices.getAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication) |
OAuth2AccessToken |
AccessTokenRequest.getExistingToken() |
OAuth2AccessToken |
DefaultAccessTokenRequest.getExistingToken() |
OAuth2AccessToken |
AccessTokenProvider.obtainAccessToken(OAuth2ProtectedResourceDetails details,
AccessTokenRequest parameters)
Obtain a new access token for the specified protected resource.
|
OAuth2AccessToken |
AccessTokenProviderChain.obtainAccessToken(OAuth2ProtectedResourceDetails resource,
AccessTokenRequest request) |
protected OAuth2AccessToken |
AccessTokenProviderChain.obtainNewAccessTokenInternal(OAuth2ProtectedResourceDetails details,
AccessTokenRequest request) |
OAuth2AccessToken |
AccessTokenProvider.refreshAccessToken(OAuth2ProtectedResourceDetails resource,
OAuth2RefreshToken refreshToken,
AccessTokenRequest request) |
OAuth2AccessToken |
AccessTokenProviderChain.refreshAccessToken(OAuth2ProtectedResourceDetails resource,
OAuth2RefreshToken refreshToken,
AccessTokenRequest request)
Obtain a new access token for the specified resource using the refresh token.
|
protected OAuth2AccessToken |
OAuth2AccessTokenSupport.retrieveToken(AccessTokenRequest request,
OAuth2ProtectedResourceDetails resource,
MultiValueMap<String,String> form,
org.springframework.http.HttpHeaders headers) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.client.ResponseExtractor<OAuth2AccessToken> |
OAuth2AccessTokenSupport.getResponseExtractor() |
Modifier and Type | Method and Description |
---|---|
void |
ClientTokenServices.saveAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication,
OAuth2AccessToken accessToken)
Save or update the access token for this resource and authentication (may be null).
|
void |
JdbcClientTokenServices.saveAccessToken(OAuth2ProtectedResourceDetails resource,
org.springframework.security.core.Authentication authentication,
OAuth2AccessToken accessToken) |
void |
AccessTokenRequest.setExistingToken(OAuth2AccessToken existingToken) |
void |
DefaultAccessTokenRequest.setExistingToken(OAuth2AccessToken existingToken) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
ClientCredentialsAccessTokenProvider.obtainAccessToken(OAuth2ProtectedResourceDetails details,
AccessTokenRequest request) |
OAuth2AccessToken |
ClientCredentialsAccessTokenProvider.refreshAccessToken(OAuth2ProtectedResourceDetails resource,
OAuth2RefreshToken refreshToken,
AccessTokenRequest request) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
AuthorizationCodeAccessTokenProvider.obtainAccessToken(OAuth2ProtectedResourceDetails details,
AccessTokenRequest request) |
OAuth2AccessToken |
AuthorizationCodeAccessTokenProvider.refreshAccessToken(OAuth2ProtectedResourceDetails resource,
OAuth2RefreshToken refreshToken,
AccessTokenRequest request) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
ImplicitAccessTokenProvider.obtainAccessToken(OAuth2ProtectedResourceDetails details,
AccessTokenRequest request) |
OAuth2AccessToken |
ImplicitAccessTokenProvider.refreshAccessToken(OAuth2ProtectedResourceDetails resource,
OAuth2RefreshToken refreshToken,
AccessTokenRequest request) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.client.ResponseExtractor<OAuth2AccessToken> |
ImplicitAccessTokenProvider.getResponseExtractor() |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
ResourceOwnerPasswordAccessTokenProvider.obtainAccessToken(OAuth2ProtectedResourceDetails details,
AccessTokenRequest request) |
OAuth2AccessToken |
ResourceOwnerPasswordAccessTokenProvider.refreshAccessToken(OAuth2ProtectedResourceDetails resource,
OAuth2RefreshToken refreshToken,
AccessTokenRequest request) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultOAuth2AccessToken
Basic access token for OAuth 2.
|
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
OAuth2AccessTokenJackson2Deserializer.deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
static OAuth2AccessToken |
DefaultOAuth2AccessToken.valueOf(Map<String,String> tokenParams) |
Modifier and Type | Method and Description |
---|---|
void |
OAuth2AccessTokenJackson2Serializer.serialize(OAuth2AccessToken token,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
Constructor and Description |
---|
DefaultOAuth2AccessToken(OAuth2AccessToken accessToken)
Copy constructor for access token.
|
Modifier and Type | Method and Description |
---|---|
protected OAuth2AccessToken |
FormOAuth2AccessTokenMessageConverter.readInternal(Class<? extends OAuth2AccessToken> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
Modifier and Type | Method and Description |
---|---|
protected void |
FormOAuth2AccessTokenMessageConverter.writeInternal(OAuth2AccessToken accessToken,
org.springframework.http.HttpOutputMessage outputMessage) |
Modifier and Type | Method and Description |
---|---|
protected OAuth2AccessToken |
FormOAuth2AccessTokenMessageConverter.readInternal(Class<? extends OAuth2AccessToken> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
Modifier and Type | Method and Description |
---|---|
protected OAuth2AccessToken |
JaxbOAuth2AccessTokenMessageConverter.convertToExternal(org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessToken jaxbAccessToken) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2AccessToken |
JaxbOAuth2AccessTokenMessageConverter.convertToInternal(OAuth2AccessToken accessToken) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
CompositeTokenGranter.grant(String grantType,
TokenRequest tokenRequest) |
OAuth2AccessToken |
TokenGranter.grant(String grantType,
TokenRequest tokenRequest) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
ClientCredentialsTokenGranter.grant(String grantType,
TokenRequest tokenRequest) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<OAuth2AccessToken> |
TokenEndpoint.getAccessToken(Principal principal,
Map<String,String> parameters) |
org.springframework.http.ResponseEntity<OAuth2AccessToken> |
TokenEndpoint.postAccessToken(Principal principal,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
protected OAuth2AccessToken |
RefreshTokenGranter.getAccessToken(ClientDetails client,
TokenRequest tokenRequest) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
DefaultTokenServices.createAccessToken(OAuth2Authentication authentication) |
OAuth2AccessToken |
AuthorizationServerTokenServices.createAccessToken(OAuth2Authentication authentication)
Create an access token associated with the specified credentials.
|
OAuth2AccessToken |
TokenEnhancer.enhance(OAuth2AccessToken accessToken,
OAuth2Authentication authentication)
Provides an opportunity for customization of an access token (e.g. through its additional information map) during
the process of creating a new token for use by a client.
|
OAuth2AccessToken |
TokenEnhancerChain.enhance(OAuth2AccessToken accessToken,
OAuth2Authentication authentication)
Loop over the
delegates passing the result into the next member of the chain. |
OAuth2AccessToken |
AccessTokenConverter.extractAccessToken(String value,
Map<String,?> map)
Recover an access token from the converted value.
|
OAuth2AccessToken |
DefaultAccessTokenConverter.extractAccessToken(String value,
Map<String,?> map) |
protected OAuth2AccessToken |
AbstractTokenGranter.getAccessToken(ClientDetails client,
TokenRequest tokenRequest) |
OAuth2AccessToken |
TokenStore.getAccessToken(OAuth2Authentication authentication)
Retrieve an access token stored against the provided authentication key, if it exists.
|
OAuth2AccessToken |
DefaultTokenServices.getAccessToken(OAuth2Authentication authentication) |
OAuth2AccessToken |
AuthorizationServerTokenServices.getAccessToken(OAuth2Authentication authentication)
Retrieve an access token stored against the provided authentication key, if it exists.
|
OAuth2AccessToken |
AbstractTokenGranter.grant(String grantType,
TokenRequest tokenRequest) |
OAuth2AccessToken |
ResourceServerTokenServices.readAccessToken(String accessToken)
Retrieve the full access token details from just the value.
|
OAuth2AccessToken |
TokenStore.readAccessToken(String tokenValue)
Read an access token from the store.
|
OAuth2AccessToken |
DefaultTokenServices.readAccessToken(String accessToken) |
OAuth2AccessToken |
RemoteTokenServices.readAccessToken(String accessToken) |
OAuth2AccessToken |
DefaultTokenServices.refreshAccessToken(String refreshTokenValue,
TokenRequest tokenRequest) |
OAuth2AccessToken |
AuthorizationServerTokenServices.refreshAccessToken(String refreshToken,
TokenRequest tokenRequest)
Refresh an access token.
|
Modifier and Type | Method and Description |
---|---|
Collection<OAuth2AccessToken> |
TokenStore.findTokensByClientId(String clientId) |
Collection<OAuth2AccessToken> |
TokenStore.findTokensByClientIdAndUserName(String clientId,
String userName) |
Modifier and Type | Method and Description |
---|---|
Map<String,?> |
AccessTokenConverter.convertAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication) |
Map<String,?> |
DefaultAccessTokenConverter.convertAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication) |
OAuth2AccessToken |
TokenEnhancer.enhance(OAuth2AccessToken accessToken,
OAuth2Authentication authentication)
Provides an opportunity for customization of an access token (e.g. through its additional information map) during
the process of creating a new token for use by a client.
|
OAuth2AccessToken |
TokenEnhancerChain.enhance(OAuth2AccessToken accessToken,
OAuth2Authentication authentication)
Loop over the
delegates passing the result into the next member of the chain. |
OAuth2Authentication |
TokenStore.readAuthentication(OAuth2AccessToken token)
Read the authentication stored under the specified token value.
|
void |
TokenStore.removeAccessToken(OAuth2AccessToken token)
Remove an access token from the store.
|
void |
TokenStore.storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
Store an access token.
|
Modifier and Type | Method and Description |
---|---|
protected OAuth2AccessToken |
JdbcTokenStore.deserializeAccessToken(byte[] token) |
OAuth2AccessToken |
JwtAccessTokenConverter.enhance(OAuth2AccessToken accessToken,
OAuth2Authentication authentication) |
OAuth2AccessToken |
JwtAccessTokenConverter.extractAccessToken(String value,
Map<String,?> map) |
OAuth2AccessToken |
JwtTokenStore.getAccessToken(OAuth2Authentication authentication) |
OAuth2AccessToken |
InMemoryTokenStore.getAccessToken(OAuth2Authentication authentication) |
OAuth2AccessToken |
JdbcTokenStore.getAccessToken(OAuth2Authentication authentication) |
OAuth2AccessToken |
JwtTokenStore.readAccessToken(String tokenValue) |
OAuth2AccessToken |
InMemoryTokenStore.readAccessToken(String tokenValue) |
OAuth2AccessToken |
JdbcTokenStore.readAccessToken(String tokenValue) |
Modifier and Type | Method and Description |
---|---|
Collection<OAuth2AccessToken> |
JwtTokenStore.findTokensByClientId(String clientId) |
Collection<OAuth2AccessToken> |
InMemoryTokenStore.findTokensByClientId(String clientId) |
Collection<OAuth2AccessToken> |
JdbcTokenStore.findTokensByClientId(String clientId) |
Collection<OAuth2AccessToken> |
JwtTokenStore.findTokensByClientIdAndUserName(String clientId,
String userName) |
Collection<OAuth2AccessToken> |
InMemoryTokenStore.findTokensByClientIdAndUserName(String clientId,
String userName) |
Collection<OAuth2AccessToken> |
JdbcTokenStore.findTokensByClientIdAndUserName(String clientId,
String userName) |
Collection<OAuth2AccessToken> |
JdbcTokenStore.findTokensByUserName(String userName) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
JwkTokenStore.getAccessToken(OAuth2Authentication authentication)
This operation is not applicable for a Resource Server
and if called, will throw a
JwkException . |
OAuth2AccessToken |
JwkTokenStore.readAccessToken(String tokenValue)
Delegates to the internal instance
JwtTokenStore.readAccessToken(String) . |
Modifier and Type | Method and Description |
---|---|
Collection<OAuth2AccessToken> |
JwkTokenStore.findTokensByClientId(String clientId)
This operation is not applicable for a Resource Server
and if called, will throw a
JwkException . |
Collection<OAuth2AccessToken> |
JwkTokenStore.findTokensByClientIdAndUserName(String clientId,
String userName)
This operation is not applicable for a Resource Server
and if called, will throw a
JwkException . |
Modifier and Type | Method and Description |
---|---|
OAuth2Authentication |
JwkTokenStore.readAuthentication(OAuth2AccessToken token)
Delegates to the internal instance
JwtTokenStore.readAuthentication(OAuth2AccessToken) . |
void |
JwkTokenStore.removeAccessToken(OAuth2AccessToken token)
Delegates to the internal instance
JwtTokenStore.removeAccessToken(OAuth2AccessToken) . |
void |
JwkTokenStore.storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
This operation is not applicable for a Resource Server
and if called, will throw a
JwkException . |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
RedisTokenStore.getAccessToken(OAuth2Authentication authentication) |
OAuth2AccessToken |
RedisTokenStore.readAccessToken(String tokenValue) |
Modifier and Type | Method and Description |
---|---|
Collection<OAuth2AccessToken> |
RedisTokenStore.findTokensByClientId(String clientId) |
Collection<OAuth2AccessToken> |
RedisTokenStore.findTokensByClientIdAndUserName(String clientId,
String userName) |
Modifier and Type | Method and Description |
---|---|
OAuth2Authentication |
RedisTokenStore.readAuthentication(OAuth2AccessToken token) |
void |
RedisTokenStore.removeAccessToken(OAuth2AccessToken accessToken) |
void |
RedisTokenStore.storeAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication) |
Copyright © 2019. All rights reserved.