public class DynamicTokenService extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
| 构造器和说明 |
|---|
DynamicTokenService(org.springframework.security.oauth2.provider.token.DefaultTokenServices defaultTokenServices,
org.springframework.security.oauth2.provider.token.RemoteTokenServices remoteTokenServices) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(String token) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(String token) |
public DynamicTokenService(org.springframework.security.oauth2.provider.token.DefaultTokenServices defaultTokenServices,
org.springframework.security.oauth2.provider.token.RemoteTokenServices remoteTokenServices)
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String token) throws org.springframework.security.core.AuthenticationException, org.springframework.security.oauth2.common.exceptions.InvalidTokenException
loadAuthentication 在接口中 org.springframework.security.oauth2.provider.token.ResourceServerTokenServicesorg.springframework.security.core.AuthenticationExceptionorg.springframework.security.oauth2.common.exceptions.InvalidTokenExceptionpublic org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String token)
readAccessToken 在接口中 org.springframework.security.oauth2.provider.token.ResourceServerTokenServicesCopyright © 2018. All rights reserved.