public class DefaultAccessTokenConverter extends Object implements AccessTokenConverter
AccessTokenConverter.| Constructor and Description |
|---|
DefaultAccessTokenConverter() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
convertAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication) |
OAuth2AccessToken |
extractAccessToken(String value,
Map<String,?> map)
Recover an access token from the converted value.
|
OAuth2Authentication |
extractAuthentication(Map<String,?> map)
Recover an
OAuth2Authentication from the converted access token. |
void |
setUserTokenConverter(UserAuthenticationConverter userTokenConverter)
Converter for the part of the data in the token representing a user.
|
public void setUserTokenConverter(UserAuthenticationConverter userTokenConverter)
userTokenConverter - the userTokenConverter to setpublic Map<String,?> convertAccessToken(OAuth2AccessToken token, OAuth2Authentication authentication)
convertAccessToken in interface AccessTokenConvertertoken - an access tokenauthentication - the current OAuth authenticationpublic OAuth2AccessToken extractAccessToken(String value, Map<String,?> map)
AccessTokenConverterAccessTokenConverter.convertAccessToken(OAuth2AccessToken, OAuth2Authentication).extractAccessToken in interface AccessTokenConvertervalue - the token valuemap - information decoded from an access tokenpublic OAuth2Authentication extractAuthentication(Map<String,?> map)
AccessTokenConverterOAuth2Authentication from the converted access token. Half the inverse of
AccessTokenConverter.convertAccessToken(OAuth2AccessToken, OAuth2Authentication).extractAuthentication in interface AccessTokenConvertermap - information decoded from an access tokenCopyright © 2014. All rights reserved.