public class RevocationRequestHandler extends Object
In an implementation of revocation endpoint, call handle() method and use the response as the response from the endpoint to the client
application. handle() method calls Authlete's /api/auth/revocation API,
receives a response from the API, and dispatches processing according to the
action parameter in the response.
| Constructor and Description |
|---|
RevocationRequestHandler(com.authlete.common.api.AuthleteApi api)
Constructor with an implementation of
AuthleteApi interface. |
| Modifier and Type | Method and Description |
|---|---|
protected com.authlete.jaxrs.AuthleteApiCaller |
getApiCaller() |
javax.ws.rs.core.Response |
handle(javax.ws.rs.core.MultivaluedMap<String,String> parameters,
String authorization)
Handle a token revocation request (RFC 7009).
|
protected javax.ws.rs.InternalServerErrorException |
unexpected(String message,
Throwable cause) |
public RevocationRequestHandler(com.authlete.common.api.AuthleteApi api)
AuthleteApi interface.api - Implementation of AuthleteApi interface.public javax.ws.rs.core.Response handle(javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization) throws javax.ws.rs.WebApplicationException
parameters - Request parameters of a token revocation request.authorization - The value of Authorization header in the token revocation
request. A client application may embed its pair of client ID and
client secret in a token revocation request using Basic
Authentication.javax.ws.rs.WebApplicationException - An error occurred.protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
Copyright © 2016. All rights reserved.