public class BaseJwksEndpoint extends BaseEndpoint
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 |
|---|
BaseJwksEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
handle(com.authlete.common.api.AuthleteApi api)
Handle a request for a JWK Set document.
|
onErrorpublic javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api)
This method internally creates a JwksRequestHandler instance and
calls its JwksRequestHandler.handle() method. Then, this method
uses the value returned from the handle() method as a response
from this method.
When JwksRequestHandler.handle() method raises a WebApplicationException, this method calls onError() method with the exception. The default implementation of onError()
calls printStackTrace() of the exception and does nothing else. You
can override the method as necessary. After calling onError() method,
this method calls getResponse() method of the exception and uses the
returned value as a response from this method.
api - An implementation of AuthleteApi.Copyright © 2016. All rights reserved.