Package com.authlete.jakarta
Class IntrospectionRequestHandler
- java.lang.Object
-
- com.authlete.jakarta.IntrospectionRequestHandler
-
public class IntrospectionRequestHandler extends Object
Handler for token introspection requests (RFC 7662).In an implementation of introspection endpoint, call
handle()method and use the response as the response from the endpoint to the resource server.handle()method calls Authlete's/api/auth/introspection/standardAPI, receives a response from the API, and dispatches processing according to theactionparameter in the response.- Since:
- 2.2
- Author:
- Takahiko Kawasaki, Hideki Ikeda
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntrospectionRequestHandler.ParamsParameters passed to thehandle(Params)method.
-
Constructor Summary
Constructors Constructor Description IntrospectionRequestHandler(com.authlete.common.api.AuthleteApi api)Constructor with an implementation ofAuthleteApiinterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.authlete.jakarta.AuthleteApiCallergetApiCaller()jakarta.ws.rs.core.Responsehandle(IntrospectionRequestHandler.Params params)Handle an introspection request (RFC 7662).jakarta.ws.rs.core.Responsehandle(IntrospectionRequestHandler.Params params, com.authlete.common.api.Options options)Handle an introspection request (RFC 7662).jakarta.ws.rs.core.Responsehandle(jakarta.ws.rs.core.MultivaluedMap<String,String> parameters)Handle an introspection request (RFC 7662).jakarta.ws.rs.core.Responsehandle(jakarta.ws.rs.core.MultivaluedMap<String,String> parameters, com.authlete.common.api.Options options)Handle an introspection request (RFC 7662).protected jakarta.ws.rs.InternalServerErrorExceptionunexpected(String message, Throwable cause)
-
-
-
Method Detail
-
handle
public jakarta.ws.rs.core.Response handle(jakarta.ws.rs.core.MultivaluedMap<String,String> parameters) throws jakarta.ws.rs.WebApplicationException
- Parameters:
parameters- The request parameters of an introspection request.- Returns:
- A response that should be returned from the endpoint to the resource server.
- Throws:
jakarta.ws.rs.WebApplicationException- An error occurred.
-
handle
public jakarta.ws.rs.core.Response handle(jakarta.ws.rs.core.MultivaluedMap<String,String> parameters, com.authlete.common.api.Options options) throws jakarta.ws.rs.WebApplicationException
Handle an introspection request (RFC 7662). This method is an alias of thehandle(Params)method.- Parameters:
parameters- The request parameters of an introspection request.options- The request options for the/api/auth/introspection/standardAPI.- Returns:
- A response that should be returned from the endpoint to the resource server.
- Throws:
jakarta.ws.rs.WebApplicationException- An error occurred.- Since:
- 2.82
-
handle
public jakarta.ws.rs.core.Response handle(IntrospectionRequestHandler.Params params) throws jakarta.ws.rs.WebApplicationException
- Parameters:
params- Parameters needed to handle the introspection request. Must not benull.- Returns:
- A response that should be returned from the endpoint to the resource server.
- Throws:
jakarta.ws.rs.WebApplicationException- An error occurred.- Since:
- 2.63
-
handle
public jakarta.ws.rs.core.Response handle(IntrospectionRequestHandler.Params params, com.authlete.common.api.Options options) throws jakarta.ws.rs.WebApplicationException
Handle an introspection request (RFC 7662).- Parameters:
params- Parameters needed to handle the introspection request. Must not benull.options- The request options for the/api/auth/introspectionAPI.- Returns:
- A response that should be returned from the endpoint to the resource server.
- Throws:
jakarta.ws.rs.WebApplicationException- An error occurred.- Since:
- 2.82
-
getApiCaller
protected com.authlete.jakarta.AuthleteApiCaller getApiCaller()
-
-