Package org.forgerock.oauth2.core
Class OAuth2TokenIntrospectionHandler
- java.lang.Object
-
- org.forgerock.oauth2.core.OAuth2TokenIntrospectionHandler
-
- All Implemented Interfaces:
TokenIntrospectionHandler
public class OAuth2TokenIntrospectionHandler extends Object implements TokenIntrospectionHandler
-
-
Constructor Summary
Constructors Constructor Description OAuth2TokenIntrospectionHandler(TokenStore tokenStore, OAuth2UrisFactory urisFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntrospectableToken
getIntrospectableToken(OAuth2Request request, String tokenType, String tokenId)
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.
-
-
-
Constructor Detail
-
OAuth2TokenIntrospectionHandler
@Inject public OAuth2TokenIntrospectionHandler(TokenStore tokenStore, OAuth2UrisFactory urisFactory)
-
-
Method Detail
-
introspect
public org.forgerock.json.JsonValue introspect(OAuth2Request request, String clientId, String tokenType, String tokenId) throws ServerException, NotFoundException
Description copied from interface:TokenIntrospectionHandler
Look for a token of a particular type, with a given ID, and return its introspected representation.- Specified by:
introspect
in interfaceTokenIntrospectionHandler
- Parameters:
request
- The OAuth 2.0 request.clientId
- The OAuth 2.0 client making the request.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.- Returns:
- The introspected representation.
- Throws:
ServerException
NotFoundException
-
getIntrospectableToken
protected IntrospectableToken getIntrospectableToken(OAuth2Request request, String tokenType, String tokenId) throws ServerException, NotFoundException
- Throws:
ServerException
NotFoundException
-
priority
public Integer priority()
Description copied from interface:TokenIntrospectionHandler
The priority of the handler. A lower value will be used first.- Specified by:
priority
in interfaceTokenIntrospectionHandler
-
-