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/complete
API, receives a response from the API, and dispatches processing according to theaction
parameter 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 ofAuthleteApi
interface and an implementation ofBackchannelAuthenticationCompleteRequestHandlerSpi
interface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.authlete.jaxrs.AuthleteApiCaller
getApiCaller()
void
handle(String ticket, String[] claimNames)
Handle the result of end-user authentication and authorization in CIBA (Client Initiated Backchannel Authentication) flow.protected javax.ws.rs.InternalServerErrorException
unexpected(String message, Throwable cause)
-
-
-
Constructor Detail
-
BackchannelAuthenticationCompleteRequestHandler
public BackchannelAuthenticationCompleteRequestHandler(com.authlete.common.api.AuthleteApi api, BackchannelAuthenticationCompleteRequestHandlerSpi spi)
Constructor with an implementation ofAuthleteApi
interface and an implementation ofBackchannelAuthenticationCompleteRequestHandlerSpi
interface.- Parameters:
api
- Implementation ofAuthleteApi
interface.spi
- Implementation ofBackchannelAuthenticationCompleteRequestHandlerSpi
interface.
-
-
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.- Parameters:
ticket
- A ticket that was issued by Authlete's/api/backchannel/authentication
API.claimNames
- Names of requested claims. Use the value of theclaimNames
parameter in a response from Authlete's/api/backchannel/authentication
API.- Throws:
javax.ws.rs.WebApplicationException
- An error occurred.
-
getApiCaller
protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
-
-