org.springframework.security.oauth2.provider.token
接口 TokenEnhancer
- 所有已知实现类:
- TokenEnhancerChain
public interface TokenEnhancer
Strategy for enhancing an access token before it is stored by an AuthorizationServerTokenServices
implementation.
- 作者:
- Dave Syer
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.
- 参数:
accessToken - the current access token with its expiration and refresh tokenauthentication - the current authentication including client and user details
- 返回:
- a new token enhanced with additional information
Copyright © 2013. All rights reserved.