public class JwksRequestHandler extends Object
An OpenID Provider (OP) is required to expose its JSON Web Key Set document
(JWK Set) so that client applications can (1) verify signatures by the OP
and (2) encrypt their requests to the OP. The URI of a JWK Set endpoint can
be found as the value of jwks_uri in OpenID Provider Metadata, if the OP supports OpenID
Connect Discovery 1.0.
| Constructor and Description |
|---|
JwksRequestHandler(com.authlete.common.api.AuthleteApi api)
Constructor with an implementation of
AuthleteApi interface. |
| Modifier and Type | Method and Description |
|---|---|
protected com.authlete.jaxrs.AuthleteApiCaller |
getApiCaller() |
javax.ws.rs.core.Response |
handle()
Handle a request to a JWK Set endpoint.
|
javax.ws.rs.core.Response |
handle(boolean pretty)
Handle a request to a JWK Set endpoint.
|
protected javax.ws.rs.InternalServerErrorException |
unexpected(String message,
Throwable cause) |
public JwksRequestHandler(com.authlete.common.api.AuthleteApi api)
AuthleteApi interface.api - Implementation of AuthleteApi interface.public javax.ws.rs.core.Response handle()
throws javax.ws.rs.WebApplicationException
handle(true).javax.ws.rs.WebApplicationException - An error occurred.public javax.ws.rs.core.Response handle(boolean pretty)
throws javax.ws.rs.WebApplicationException
/api/service/jwks/get API.pretty - true to return the output JSON in pretty format.javax.ws.rs.WebApplicationException - An error occurred.protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
Copyright © 2016. All rights reserved.