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 IntrospectableTokengetIntrospectableToken(OAuth2Request request, String tokenType, String tokenId)org.forgerock.json.JsonValueintrospect(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.Integerpriority()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:TokenIntrospectionHandlerLook for a token of a particular type, with a given ID, and return its introspected representation.- Specified by:
introspectin 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:
ServerExceptionNotFoundException
-
getIntrospectableToken
protected IntrospectableToken getIntrospectableToken(OAuth2Request request, String tokenType, String tokenId) throws ServerException, NotFoundException
- Throws:
ServerExceptionNotFoundException
-
priority
public Integer priority()
Description copied from interface:TokenIntrospectionHandlerThe priority of the handler. A lower value will be used first.- Specified by:
priorityin interfaceTokenIntrospectionHandler
-
-