Package org.forgerock.oauth2.core
Class TokenIntrospectionService
- java.lang.Object
-
- org.forgerock.oauth2.core.TokenIntrospectionService
-
public class TokenIntrospectionService extends Object
A service for introspecting tokens.
-
-
Constructor Summary
Constructors Constructor Description TokenIntrospectionService(ClientAuthenticator clientAuthenticator, Set<TokenIntrospectionHandler> handlers, OAuth2UrisFactory urisFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.json.JsonValueintrospect(OAuth2Request request)Allows introspection of a (refresh or access) token according to the OAuth 2.0 Token Introspection standard.
-
-
-
Constructor Detail
-
TokenIntrospectionService
@Inject public TokenIntrospectionService(ClientAuthenticator clientAuthenticator, Set<TokenIntrospectionHandler> handlers, OAuth2UrisFactory urisFactory)
-
-
Method Detail
-
introspect
public org.forgerock.json.JsonValue introspect(OAuth2Request request) throws InvalidClientException, InvalidRequestException, NotFoundException, ServerException
Allows introspection of a (refresh or access) token according to the OAuth 2.0 Token Introspection standard.The request must must contain authorization as the OAuth 2.0 client that the token was issued for, using either credentials or a bearer token.
- Parameters:
request- The OAuth 2.0 request- Returns:
- Details of the specified token.
- Throws:
InvalidClientExceptionInvalidRequestExceptionNotFoundExceptionServerException
-
-