public class CustomeTokenEnhancer extends Object implements org.springframework.security.oauth2.provider.token.TokenEnhancer
自定义token生成器
由 Oauth2Server 收集,然后经public void configure(ResourceServerSecurityConfigurer resources) 注入到oauth2中| Constructor and Description |
|---|
CustomeTokenEnhancer() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.common.OAuth2AccessToken |
enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
public org.springframework.security.oauth2.common.OAuth2AccessToken enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
enhance in interface org.springframework.security.oauth2.provider.token.TokenEnhancerCopyright © 2021. All rights reserved.