Package com.authlete.jaxrs
Class BaseRevocationEndpoint
- java.lang.Object
-
- com.authlete.jaxrs.BaseEndpoint
-
- com.authlete.jaxrs.BaseRevocationEndpoint
-
public class BaseRevocationEndpoint extends BaseEndpoint
A base class for revocation endpoint implementations.- Since:
- 1.1
- Author:
- Takahiko Kawasaki
- See Also:
- RFC 7009 : OAuth 2.0 Token Revocation,
RevocationRequestHandler
-
-
Constructor Summary
Constructors Constructor Description BaseRevocationEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
handle(com.authlete.common.api.AuthleteApi api, RevocationRequestHandler.Params params)
Handle a revocation request.javax.ws.rs.core.Response
handle(com.authlete.common.api.AuthleteApi api, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization)
Handle a revocation request.-
Methods inherited from class com.authlete.jaxrs.BaseEndpoint
extractClientCertificate, extractClientCertificateChain, extractHeadersAsPairs, onError, takeAttribute
-
-
-
-
Method Detail
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization)
Handle a revocation request.This method internally creates a
RevocationRequestHandler
instance and calls itsRevocationRequestHandler.handle(Params)
method. Then, this method uses the value returned from thehandle()
method as a response from this method.When
RevocationRequestHandler.handle()
method raises aWebApplicationException
, this method callsonError()
method with the exception. The default implementation ofonError()
does nothing. You can override the method as necessary. After callingonError()
method, this method callsgetResponse()
method of the exception and uses the returned value as a response from this method.- Parameters:
api
- An implementation ofAuthleteApi
.parameters
- Request parameters of a revocation request.authorization
- The value ofAuthorization
header.- Returns:
- A response that should be returned to the client application.
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, RevocationRequestHandler.Params params)
Handle a revocation request.- Parameters:
api
- An implementation ofAuthleteApi
.params
- Parameters for Authlete's/auth/revocation
API.- Returns:
- A response that should be returned to the client application.
- Since:
- 2.79
-
-