Package com.authlete.jaxrs
Class BaseGrantManagementEndpoint
- java.lang.Object
-
- com.authlete.jaxrs.BaseEndpoint
-
- com.authlete.jaxrs.BaseResourceEndpoint
-
- com.authlete.jaxrs.BaseGrantManagementEndpoint
-
public class BaseGrantManagementEndpoint extends BaseResourceEndpoint
A base class for grant management endpoint.- Since:
- 2.38
- See Also:
- Grant Management for OAuth 2.0
-
-
Constructor Summary
Constructors Constructor Description BaseGrantManagementEndpoint()
-
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, javax.servlet.http.HttpServletRequest req, String grantId)
Handle a grant management request.-
Methods inherited from class com.authlete.jaxrs.BaseResourceEndpoint
extractAccessToken, validateAccessToken, validateAccessToken, validateAccessToken, validateAccessToken, validateAccessToken, validateAccessToken
-
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.servlet.http.HttpServletRequest req, String grantId) throws javax.ws.rs.WebApplicationException
Handle a grant management request.This method internally creates a
GMRequestHandler
instance and calls itshandle
(
GMRequest
)
method.- Parameters:
api
- An implementation ofAuthleteApi
.req
- An HTTP request that the grant management endpoint received. Its HTTP method must be eitherGET
orDELETE
.grantId
- The grant ID included in the API call to the grant management endpoint. The last part of the path of the URL.- Returns:
- A response that should be returned to the client application.
- Throws:
javax.ws.rs.WebApplicationException
- An exception generated byGMRequestHandler
.
-
-