Package com.authlete.jaxrs
Class BaseBackchannelAuthenticationEndpoint
- java.lang.Object
- 
- com.authlete.jaxrs.BaseEndpoint
- 
- com.authlete.jaxrs.BaseBackchannelAuthenticationEndpoint
 
 
- 
 public class BaseBackchannelAuthenticationEndpoint extends BaseEndpoint A base class for backchannel authentication endpoints of CIBA (Client Initiated Backchannel Authentication).- Since:
- 2.13
- Author:
- Hideki Ikeda
 
- 
- 
Constructor SummaryConstructors Constructor Description BaseBackchannelAuthenticationEndpoint()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationRequestHandlerSpi spi, BackchannelAuthenticationRequestHandler.Params params)Handle a backchannel authentication request.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationRequestHandlerSpi spi, BackchannelAuthenticationRequestHandler.Params params, com.authlete.common.api.Options bcAuthOptions, com.authlete.common.api.Options bcAuthIssueOptions, com.authlete.common.api.Options bcAuthFailOptions)Handle a backchannel authentication request.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationRequestHandlerSpi spi, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificatePath)Handle a backchannel authentication request in CIBA (Client Initiated Backchannel Authentication) flow.javax.ws.rs.core.Responsehandle(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationRequestHandlerSpi spi, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificatePath, com.authlete.common.api.Options bcAuthOptions, com.authlete.common.api.Options bcAuthIssueOptions, com.authlete.common.api.Options bcAuthFailOptions)Handle a backchannel authentication request in CIBA (Client Initiated Backchannel Authentication) flow.- 
Methods inherited from class com.authlete.jaxrs.BaseEndpointextractClientCertificate, extractClientCertificateChain, extractHeadersAsPairs, onError, takeAttribute
 
- 
 
- 
- 
- 
Method Detail- 
handlepublic javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationRequestHandlerSpi spi, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificatePath)Handle a backchannel authentication request in CIBA (Client Initiated Backchannel Authentication) flow. This method is an alias ofhandle(api, spi, parameters, authorization, clientCertificatePath, null, null, null).- Parameters:
- api- An implementation of- AuthleteApi.
- spi- An implementation of- BackchannelAuthenticationRequestHandlerSpi.
- parameters- The request parameters of the backchannel authentication request.
- authorization- The value of- Authorizationheader of the backchannel authentication request.
- clientCertificatePath- 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.
 
 - 
handlepublic javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationRequestHandlerSpi spi, javax.ws.rs.core.MultivaluedMap<String,String> parameters, String authorization, String[] clientCertificatePath, com.authlete.common.api.Options bcAuthOptions, com.authlete.common.api.Options bcAuthIssueOptions, com.authlete.common.api.Options bcAuthFailOptions)Handle a backchannel authentication request in CIBA (Client Initiated Backchannel Authentication) flow. This method is an alias of thehandle(AuthleteApi, BackchannelAuthenticationRequestHandlerSpi, Params, Options, Options, Options)method.- Parameters:
- api- An implementation of- AuthleteApi.
- spi- An implementation of- BackchannelAuthenticationRequestHandlerSpi.
- parameters- The request parameters of the backchannel authentication request.
- authorization- The value of- Authorizationheader of the backchannel authentication request.
- clientCertificatePath- 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.
- bcAuthOptions- The request options for the- /api/backchannel/authenticationAPI.
- bcAuthIssueOptions- The request options for the- /api/backchannel/authentication/issueAPI.
- bcAuthFailOptions- The request options for the- /api/backchannel/authentication/failAPI.
- 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, BackchannelAuthenticationRequestHandlerSpi spi, BackchannelAuthenticationRequestHandler.Params params)Handle a backchannel authentication request.- Parameters:
- api- An implementation of- AuthleteApi.
- spi- An implementation of- BackchannelAuthenticationRequestHandlerSpi.
- params- Parameters for Authlete's- /backchannel/authenticationAPI.
- Returns:
- A response that should be returned to the client application.
- Since:
- 2.79
 
 - 
handlepublic javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationRequestHandlerSpi spi, BackchannelAuthenticationRequestHandler.Params params, com.authlete.common.api.Options bcAuthOptions, com.authlete.common.api.Options bcAuthIssueOptions, com.authlete.common.api.Options bcAuthFailOptions)Handle a backchannel authentication request.This method internally creates a BackchannelAuthenticationRequestHandlerinstance and calls itshandle()method. Then, this method uses the value returned from thehandle()method as a response from this method.When BackchannelAuthenticationRequestHandler.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.
- spi- An implementation of- BackchannelAuthenticationRequestHandlerSpi.
- params- Parameters for Authlete's- /backchannel/authenticationAPI.
- bcAuthOptions- The request options for the- /api/backchannel/authenticationAPI.
- bcAuthIssueOptions- The request options for the- /api/backchannel/authentication/issueAPI.
- bcAuthFailOptions- The request options for the- /api/backchannel/authentication/failAPI.
- Returns:
- A response that should be returned to the client application.
- Since:
- 2.82
 
 
- 
 
-