Package com.authlete.jaxrs
Class BasePushedAuthReqEndpoint
- java.lang.Object
- 
- com.authlete.jaxrs.BaseEndpoint
- 
- com.authlete.jaxrs.BasePushedAuthReqEndpoint
 
 
- 
 public class BasePushedAuthReqEndpoint extends BaseEndpoint A base class for pushed authorization endpoints.- Since:
- 2.21
- Author:
- Justin Richer
- See Also:
- OAuth 2.0 Pushed Authorization Requests
 
- 
- 
Constructor SummaryConstructors Constructor Description BasePushedAuthReqEndpoint()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, PushedAuthReqHandler.Params params)Handle a PAR request.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, PushedAuthReqHandler.Params params, com.authlete.common.api.Options options)Handle a PAR request.protected javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificates)Handle a pushed authorization request.protected javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificates, com.authlete.common.api.Options options)Handle a pushed authorization request.- 
Methods inherited from class com.authlete.jaxrs.BaseEndpointextractClientCertificate, extractClientCertificateChain, extractHeadersAsPairs, onError, takeAttribute
 
- 
 
- 
- 
- 
Method Detail- 
handleprotected javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificates)Handle a pushed authorization request. This method is an alias ofhandle(api, parameters, authorization, clientCertificates, null).- Parameters:
- api- An implementation of- AuthleteApi.
- parameters- The request parameters of the pushed authorization request.
- authorization- The value of- Authorizationheader of the pushed authorization request.
- clientCertificates- The certificate path used in mutual TLS authentication, in PEM format. The client's own certificate is the first in this array. Can be- null.
- Returns:
- A response that should be returned to the client application.
 
 - 
handleprotected javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificates, com.authlete.common.api.Options options)Handle a pushed authorization request. This method is an alias of thehandle(AuthleteApi, Params, Options)method.- Parameters:
- api- An implementation of- AuthleteApi.
- parameters- The request parameters of the pushed authorization request.
- authorization- The value of- Authorizationheader of the pushed authorization request.
- clientCertificates- The certificate path used in mutual TLS authentication, in PEM format. The client's own certificate is the first in this array. Can be- null.
- options- The request options for the- /api/pushed_auth_reqAPI.
- Returns:
- A response that should be returned to the client application.
- Since:
- 2.82
 
 - 
handlepublic javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, PushedAuthReqHandler.Params params)Handle a PAR request. This method is an alias ofhandle(api, params, null).- Parameters:
- api- An implementation of- AuthleteApi.
- params- Parameters needed to handle the PAR request.
- Returns:
- A response that should be returned to the client application.
- Since:
- 2.70
 
 - 
handlepublic javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, PushedAuthReqHandler.Params params, com.authlete.common.api.Options options)Handle a PAR request.This method internally creates a PushedAuthReqHandlerinstance and calls itshandle()method. Then, this method uses the value returned from thehandle()method as a response from this method.When PushedAuthReqHandler.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 of- AuthleteApi.
- params- The request parameters needed to handle the PAR request.
- options- The request options for the PAR request.
- Returns:
- A response that should be returned to the client application.
- Since:
- 2.82
 
 
- 
 
-