public class TokenEnhancerChain extends Object implements TokenEnhancer
| Constructor and Description |
|---|
TokenEnhancerChain() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void setTokenEnhancers(List<TokenEnhancer> delegates)
delegates - the delegates to setpublic OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication)
delegates passing the result into the next member of the chain.enhance in interface TokenEnhanceraccessToken - the current access token with its expiration and refresh tokenauthentication - the current authentication including client and user detailsTokenEnhancer.enhance(org.springframework.security.oauth2.common.OAuth2AccessToken,
org.springframework.security.oauth2.provider.OAuth2Authentication)Copyright © 2019. All rights reserved.