- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface OpaqueTokenIntrospectorA 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.
OAuth2AuthenticatedPrincipal introspect(java.lang.String token)Introspect and verify the given token, returning its attributes. Returning a
Mapis indicative that the token is valid.
token- the token to introspect
- the token's attributes