public class UserInfoRequestHandler extends Object
In an implementation of userinfo 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/userinfo API and /api/auth/userinfo/issue API.
| Constructor and Description |
|---|
UserInfoRequestHandler(com.authlete.common.api.AuthleteApi api,
UserInfoRequestHandlerSpi spi)
Constructor with an implementation of
AuthleteApi interface
and an implementation of UserInfoRequestHandlerSpi interface. |
| Modifier and Type | Method and Description |
|---|---|
protected com.authlete.jaxrs.AuthleteApiCaller |
getApiCaller() |
javax.ws.rs.core.Response |
handle(String accessToken)
Handle a userinfo request to a UserInfo Endpoint defined in OpenID Connect
Core 1.0.
|
protected javax.ws.rs.InternalServerErrorException |
unexpected(String message,
Throwable cause) |
public UserInfoRequestHandler(com.authlete.common.api.AuthleteApi api,
UserInfoRequestHandlerSpi spi)
AuthleteApi interface
and an implementation of UserInfoRequestHandlerSpi interface.api - Implementation of AuthleteApi interface.spi - Implementation of UserInfoRequestHandlerSpi interface.public javax.ws.rs.core.Response handle(String accessToken) throws javax.ws.rs.WebApplicationException
accessToken - An access token.javax.ws.rs.WebApplicationException - An error occurred.protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
Copyright © 2016. All rights reserved.