org.springframework.security.oauth2.provider.token
Interface TokenEnhancer

All Known Implementing Classes:
JwtTokenEnhancer, TokenEnhancerChain

public interface TokenEnhancer

Strategy for enhancing an access token before it is stored by an AuthorizationServerTokenServices implementation.

Author:
Dave Syer

Method Summary
 OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication)
          Provides an opportunity for customization of an access token (e.g.
 

Method Detail

enhance

OAuth2AccessToken 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.

Parameters:
accessToken - the current access token with its expiration and refresh token
authentication - the current authentication including client and user details
Returns:
a new token enhanced with additional information


Copyright © 2013. All rights reserved.