Class NimbusReactiveOpaqueTokenIntrospector

java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.NimbusReactiveOpaqueTokenIntrospector
All Implemented Interfaces:
ReactiveOpaqueTokenIntrospector

@Deprecated public class NimbusReactiveOpaqueTokenIntrospector extends Object implements ReactiveOpaqueTokenIntrospector
Deprecated.
A Nimbus implementation of ReactiveOpaqueTokenIntrospector that verifies and introspects a token using the configured OAuth 2.0 Introspection Endpoint.
Since:
5.2
  • Constructor Details

    • NimbusReactiveOpaqueTokenIntrospector

      public NimbusReactiveOpaqueTokenIntrospector(String introspectionUri, String clientId, String clientSecret)
      Deprecated.
      Creates a OpaqueTokenReactiveAuthenticationManager with the provided parameters
      Parameters:
      introspectionUri - The introspection endpoint uri
      clientId - The client id authorized to introspect
      clientSecret - The client secret for the authorized client
    • NimbusReactiveOpaqueTokenIntrospector

      public NimbusReactiveOpaqueTokenIntrospector(String introspectionUri, org.springframework.web.reactive.function.client.WebClient webClient)
      Deprecated.
      Creates a OpaqueTokenReactiveAuthenticationManager with the provided parameters
      Parameters:
      introspectionUri - The introspection endpoint uri
      webClient - The client for performing the introspection request
  • Method Details

    • introspect

      public reactor.core.publisher.Mono<org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal> introspect(String token)
      Deprecated.
      Description copied from interface: ReactiveOpaqueTokenIntrospector
      Introspect and verify the given token, returning its attributes. Returning a Map is indicative that the token is valid.
      Specified by:
      introspect in interface ReactiveOpaqueTokenIntrospector
      Parameters:
      token - the token to introspect
      Returns:
      the token's attributes