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.Responsehandle(com.authlete.common.api.AuthleteApi api, javax.servlet.http.HttpServletRequest req, String grantId)Handle a grant management request.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, javax.servlet.http.HttpServletRequest req, String grantId, com.authlete.common.api.Options options)Handle a grant management request.-
Methods inherited from class com.authlete.jaxrs.BaseResourceEndpoint
extractAccessToken, validateAccessToken, validateAccessToken, validateAccessToken, validateAccessToken, validateAccessToken, validateAccessToken, 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.WebApplicationExceptionHandle a grant management request. This method is an alias ofhandle(api, req, grantId, null).- Parameters:
api- An implementation ofAuthleteApi.req- An HTTP request that the grant management endpoint received. Its HTTP method must be eitherGETorDELETE.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.
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, javax.servlet.http.HttpServletRequest req, String grantId, com.authlete.common.api.Options options) throws javax.ws.rs.WebApplicationExceptionHandle a grant management request.This method internally creates a
GMRequestHandlerinstance and calls itsGMRequestHandler.handle(GMRequest, Options)method.- Parameters:
api- An implementation ofAuthleteApi.req- An HTTP request that the grant management endpoint received. Its HTTP method must be eitherGETorDELETE.grantId- The grant ID included in the API call to the grant management endpoint. The last part of the path of the URL.options- The request options for the/api/gmAPI.- Returns:
- A response that should be returned to the client application.
- Throws:
javax.ws.rs.WebApplicationException- An exception generated byGMRequestHandler.- Since:
- 2.82
-
-