Class NimbusOpaqueTokenIntrospector
java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.NimbusOpaqueTokenIntrospector
- All Implemented Interfaces:
OpaqueTokenIntrospector
@Deprecated
public class NimbusOpaqueTokenIntrospector
extends Object
implements OpaqueTokenIntrospector
Deprecated.
A Nimbus implementation of
OpaqueTokenIntrospector that verifies and
introspects a token using the configured
OAuth 2.0 Introspection
Endpoint.- Since:
- 5.2
-
Constructor Summary
ConstructorsConstructorDescriptionNimbusOpaqueTokenIntrospector(String introspectionUri, String clientId, String clientSecret) Deprecated.Creates aOpaqueTokenAuthenticationProviderwith the provided parametersNimbusOpaqueTokenIntrospector(String introspectionUri, org.springframework.web.client.RestOperations restOperations) Deprecated.Creates aOpaqueTokenAuthenticationProviderwith the provided parameters The givenRestOperationsshould perform its own client authentication against the introspection endpoint. -
Method Summary
Modifier and TypeMethodDescriptionintrospect(String token) Deprecated.Introspect and verify the given token, returning its attributes.voidsetRequestEntityConverter(org.springframework.core.convert.converter.Converter<String, org.springframework.http.RequestEntity<?>> requestEntityConverter) Deprecated.Sets theConverterused for converting the OAuth 2.0 access token to aRequestEntityrepresentation of the OAuth 2.0 token introspection request.
-
Constructor Details
-
NimbusOpaqueTokenIntrospector
Deprecated.Creates aOpaqueTokenAuthenticationProviderwith the provided parameters- Parameters:
introspectionUri- The introspection endpoint uriclientId- The client id authorized to introspectclientSecret- The client's secret
-
NimbusOpaqueTokenIntrospector
public NimbusOpaqueTokenIntrospector(String introspectionUri, org.springframework.web.client.RestOperations restOperations) Deprecated.Creates aOpaqueTokenAuthenticationProviderwith the provided parameters The givenRestOperationsshould perform its own client authentication against the introspection endpoint.- Parameters:
introspectionUri- The introspection endpoint urirestOperations- The client for performing the introspection request
-
-
Method Details
-
introspect
Deprecated.Description copied from interface:OpaqueTokenIntrospectorIntrospect and verify the given token, returning its attributes. Returning aOAuth2AuthenticatedPrincipalis indicative that the token is valid.- Specified by:
introspectin interfaceOpaqueTokenIntrospector- Parameters:
token- the token to introspect- Returns:
- the token's attributes
-
setRequestEntityConverter
public void setRequestEntityConverter(org.springframework.core.convert.converter.Converter<String, org.springframework.http.RequestEntity<?>> requestEntityConverter) Deprecated.Sets theConverterused for converting the OAuth 2.0 access token to aRequestEntityrepresentation of the OAuth 2.0 token introspection request.- Parameters:
requestEntityConverter- theConverterused for converting to aRequestEntityrepresentation of the token introspection request
-
SpringOpaqueTokenIntrospectorinstead