Interface OpaqueTokenIntrospector
- All Known Implementing Classes:
NimbusOpaqueTokenIntrospector
,SpringOpaqueTokenIntrospector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A contract for introspecting and verifying an OAuth 2.0 token.
A typical implementation of this interface will make a request to an
OAuth 2.0 Introspection
Endpoint to verify the token and return its attributes, indicating a successful
verification.
Another sensible implementation of this interface would be to query a backing store of
tokens, for example a distributed cache.
- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescriptionintrospect
(String token) Introspect and verify the given token, returning its attributes.
-
Method Details
-
introspect
Introspect and verify the given token, returning its attributes. Returning aMap
is indicative that the token is valid.- Parameters:
token
- the token to introspect- Returns:
- the token's attributes
-