org.springframework.security.oauth2.provider.token
类 TokenEnhancerChain

java.lang.Object
  继承者 org.springframework.security.oauth2.provider.token.TokenEnhancerChain
所有已实现的接口:
TokenEnhancer

public class TokenEnhancerChain
extends Object
implements TokenEnhancer

A composite token enhancer that loops over its delegate enhancers.

作者:
Dave Syer

构造方法摘要
TokenEnhancerChain()
           
 
方法摘要
 OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication)
          Loop over the delegates passing the result into the next member of the chain.
 void setTokenEnhancers(List<TokenEnhancer> delegates)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TokenEnhancerChain

public TokenEnhancerChain()
方法详细信息

setTokenEnhancers

public void setTokenEnhancers(List<TokenEnhancer> delegates)
参数:
delegates - the delegates to set

enhance

public OAuth2AccessToken enhance(OAuth2AccessToken accessToken,
                                 OAuth2Authentication authentication)
Loop over the delegates passing the result into the next member of the chain.

指定者:
接口 TokenEnhancer 中的 enhance
参数:
accessToken - the current access token with its expiration and refresh token
authentication - the current authentication including client and user details
返回:
a new token enhanced with additional information
另请参见:
TokenEnhancer.enhance(org.springframework.security.oauth2.common.OAuth2AccessToken, org.springframework.security.oauth2.provider.OAuth2Authentication)


Copyright © 2013. All rights reserved.