Package org.forgerock.oauth2.core
Interface TokenIntrospectionHandler
-
- All Known Implementing Classes:
OAuth2TokenIntrospectionHandler
,UmaTokenIntrospectionHandler
public interface TokenIntrospectionHandler
Handles token introspection for given types of tokens.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.forgerock.json.JsonValue
introspect(OAuth2Request request, String clientId, String tokenType, String tokenId)
Look for a token of a particular type, with a given ID, and return its introspected representation.Integer
priority()
The priority of the handler.
-
-
-
Method Detail
-
introspect
org.forgerock.json.JsonValue introspect(OAuth2Request request, String clientId, String tokenType, String tokenId) throws ServerException, NotFoundException
Look for a token of a particular type, with a given ID, and return its introspected representation.- Parameters:
tokenType
- The type of the token being introspected - could be null, in which case try and find any token with that ID.tokenId
- The ID of the token.request
- The OAuth 2.0 request.clientId
- The OAuth 2.0 client making the request.- Returns:
- The introspected representation.
- Throws:
ServerException
NotFoundException
-
priority
Integer priority()
The priority of the handler. A lower value will be used first.
-
-