Package com.authlete.jaxrs
Class BackchannelAuthenticationCompleteRequestHandler
- java.lang.Object
-
- com.authlete.jaxrs.BackchannelAuthenticationCompleteRequestHandler
-
public class BackchannelAuthenticationCompleteRequestHandler extends Object
Handler for the result of end-user authentication and authorization in CIBA (Client Initiated Backchannel Authentication) flow.handle()method should be called after the authorization server receives the result of end-user authentication and authorization from the authentication device, or even in the case where the server gave up receiving a response from the authentication device for some reasons. Thehandle()method calls Authlete's/api/backchannel/authentication/completeAPI, receives a response from the API, and dispatches processing according to theactionparameter in the response.- Since:
- 2.13
- Author:
- Hideki Ikeda
-
-
Constructor Summary
Constructors Constructor Description BackchannelAuthenticationCompleteRequestHandler(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationCompleteRequestHandlerSpi spi)Constructor with an implementation ofAuthleteApiinterface and an implementation ofBackchannelAuthenticationCompleteRequestHandlerSpiinterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.authlete.jaxrs.AuthleteApiCallergetApiCaller()voidhandle(String ticket, String[] claimNames)Handle the result of end-user authentication and authorization in CIBA (Client Initiated Backchannel Authentication) flow.voidhandle(String ticket, String[] claimNames, com.authlete.common.api.Options options)Handle the result of end-user authentication and authorization in CIBA (Client Initiated Backchannel Authentication) flow.protected javax.ws.rs.InternalServerErrorExceptionunexpected(String message, Throwable cause)
-
-
-
Constructor Detail
-
BackchannelAuthenticationCompleteRequestHandler
public BackchannelAuthenticationCompleteRequestHandler(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationCompleteRequestHandlerSpi spi)Constructor with an implementation ofAuthleteApiinterface and an implementation ofBackchannelAuthenticationCompleteRequestHandlerSpiinterface.- Parameters:
api- Implementation ofAuthleteApiinterface.spi- Implementation ofBackchannelAuthenticationCompleteRequestHandlerSpiinterface.
-
-
Method Detail
-
handle
public void handle(String ticket, String[] claimNames) throws javax.ws.rs.WebApplicationException
Handle the result of end-user authentication and authorization in CIBA (Client Initiated Backchannel Authentication) flow. This method is an alias ofhandle(ticket, claimNames, null).- Parameters:
ticket- A ticket that was issued by Authlete's/api/backchannel/authenticationAPI.claimNames- Names of requested claims. Use the value of theclaimNamesparameter in a response from Authlete's/api/backchannel/authenticationAPI.- Throws:
javax.ws.rs.WebApplicationException- An error occurred.
-
handle
public void handle(String ticket, String[] claimNames, com.authlete.common.api.Options options) throws javax.ws.rs.WebApplicationException
Handle the result of end-user authentication and authorization in CIBA (Client Initiated Backchannel Authentication) flow.- Parameters:
ticket- A ticket that was issued by Authlete's/api/backchannel/authenticationAPI.claimNames- Names of requested claims. Use the value of theclaimNamesparameter in a response from Authlete's/api/backchannel/authenticationAPI.options- The request options for the/api/backchannel/authentication/completeAPI.- Throws:
javax.ws.rs.WebApplicationException- An error occurred.- Since:
- 2.82
-
getApiCaller
protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
-
-