public class CustomOpaqueTokenIntrospector extends Object implements org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector
token探寻器
用于内省和验证OAuth 2.0令牌的协定。此接口的典型实现将向OAuth 2.0自省终结点发出请求,以验证令牌并返回其属性,表示成功验证。另一个这个接口的合理实现是查询令牌的后备存储,例如分布式缓存。
在ResourceAuthorizeProvider
中被配置ResourceAuthorizeProvider
Modifier and Type | Class and Description |
---|---|
static class |
CustomOpaqueTokenIntrospector.CustomResponseErrorHandler |
Constructor and Description |
---|
CustomOpaqueTokenIntrospector(String introspectionUri) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal |
introspect(String token) |
public CustomOpaqueTokenIntrospector(String introspectionUri)
public org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal introspect(String token)
introspect
in interface org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector
Copyright © 2021. All rights reserved.