public class AuthorizationRequestHandler extends Object
In an implementation of authorization endpoint, call handle() method and use the response as the response
from the endpoint to the client application. handle() method calls
Authlete's /api/auth/authorization API, receives a response from
the API, and dispatches processing according to the action parameter
in the response.
| Constructor and Description |
|---|
AuthorizationRequestHandler(com.authlete.common.api.AuthleteApi api,
AuthorizationRequestHandlerSpi spi)
Constructor with an implementation of
AuthleteApi interface
and an implementation of AuthorizationRequestHandlerSpi interface. |
| Modifier and Type | Method and Description |
|---|---|
protected com.authlete.jaxrs.AuthleteApiCaller |
getApiCaller() |
javax.ws.rs.core.Response |
handle(javax.ws.rs.core.MultivaluedMap<String,String> parameters)
Handle an authorization request to a authorization endpoint
of OAuth 2.0 (RFC 6749).
|
protected javax.ws.rs.InternalServerErrorException |
unexpected(String message,
Throwable cause) |
public AuthorizationRequestHandler(com.authlete.common.api.AuthleteApi api,
AuthorizationRequestHandlerSpi spi)
AuthleteApi interface
and an implementation of AuthorizationRequestHandlerSpi interface.api - Implementation of AuthleteApi interface.spi - Implementation of AuthorizationRequestHandlerSpi interface.public javax.ws.rs.core.Response handle(javax.ws.rs.core.MultivaluedMap<String,String> parameters) throws javax.ws.rs.WebApplicationException
parameters - Request parameters of an authorization request.javax.ws.rs.WebApplicationException - An error occurred.protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
Copyright © 2016. All rights reserved.