|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AccessTokenConverter
Converter interface for token service implementations that store authentication data inside the token.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Map<String,?> convertAccessToken(OAuth2AccessToken token,
OAuth2Authentication authentication)
token - an access tokenauthentication - the current OAuth authentication
OAuth2AccessToken extractAccessToken(String value,
Map<String,?> map)
convertAccessToken(OAuth2AccessToken, OAuth2Authentication).
value - the token valuemap - information decoded from an access token
OAuth2Authentication extractAuthentication(Map<String,?> map)
OAuth2Authentication from the converted access token. Half the inverse of
convertAccessToken(OAuth2AccessToken, OAuth2Authentication).
map - information decoded from an access token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||