public class SpringAuthorizationServerSharedStoredOpaqueTokenIntrospector extends Object implements org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector
当资源服务器与授权服务器共享了 TokenStore, 比如使用 RedisTokenStore 时共享了 redis,或者 jdbcTokenStore 时,共享了数据库。 此时可以直接使用 spring-authorization-server 中的 OAuth2AuthorizationService 进行读取。
| 构造器和说明 |
|---|
SpringAuthorizationServerSharedStoredOpaqueTokenIntrospector(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService) |
public SpringAuthorizationServerSharedStoredOpaqueTokenIntrospector(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService)
public org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal introspect(String accessTokenValue)
introspect 在接口中 org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospectoraccessTokenValue - tokenCopyright © 2023. All rights reserved.