Class RestClientOpaqueTokenIntrospector

java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.RestClientOpaqueTokenIntrospector
All Implemented Interfaces:
OpaqueTokenIntrospector

public final class RestClientOpaqueTokenIntrospector extends Object implements OpaqueTokenIntrospector
A Spring implementation of OpaqueTokenIntrospector that verifies and introspects a token using the configured OAuth 2.0 Introspection Endpoint, using RestClient for HTTP communication.
Since:
7.1
  • Constructor Details

    • RestClientOpaqueTokenIntrospector

      public RestClientOpaqueTokenIntrospector(String introspectionUri, org.springframework.web.client.RestClient restClient)
      Creates a OpaqueTokenAuthenticationProvider with the provided parameters The given RestClient should perform its own client authentication against the introspection endpoint.
      Parameters:
      introspectionUri - The introspection endpoint uri
      restClient - The client for performing the introspection request
  • Method Details