public class DefaultTokenServices extends java.lang.Object implements AuthorizationServerTokenServices, ResourceServerTokenServices, ConsumerTokenServices
| Constructor and Description |
|---|
DefaultTokenServices(TokenStore tokenStore,
ClientDetailsService clientDetailsService) |
| Modifier and Type | Method and Description |
|---|---|
OAuth2AccessToken |
createAccessToken(OAuth2Authentication authentication) |
OAuth2AccessToken |
getAccessToken(OAuth2Authentication authentication) |
BearerTokenAuthentication |
loadAuthentication(java.lang.String accessToken) |
OAuth2AccessToken |
readAccessToken(java.lang.String accessToken) |
boolean |
revokeToken(java.lang.String tokenValue) |
void |
setClientDetailsService(ClientDetailsService clientDetailsService) |
void |
setTokenStore(TokenStore tokenStore) |
public DefaultTokenServices(TokenStore tokenStore, ClientDetailsService clientDetailsService)
public OAuth2AccessToken createAccessToken(OAuth2Authentication authentication)
createAccessToken in interface AuthorizationServerTokenServicespublic OAuth2AccessToken getAccessToken(OAuth2Authentication authentication)
getAccessToken in interface AuthorizationServerTokenServicespublic boolean revokeToken(java.lang.String tokenValue)
revokeToken in interface ConsumerTokenServicespublic BearerTokenAuthentication loadAuthentication(java.lang.String accessToken)
loadAuthentication in interface ResourceServerTokenServicespublic OAuth2AccessToken readAccessToken(java.lang.String accessToken)
readAccessToken in interface ResourceServerTokenServicespublic void setTokenStore(TokenStore tokenStore)
public void setClientDetailsService(ClientDetailsService clientDetailsService)