src/main/java/com/authlete/jaxrs/AuthleteApiCaller.java
public Response serviceJwksGet(
            boolean pretty, boolean includePrivateKeys) throws AuthleteApiException
    {
        try
        {
            // Call Authlete's /api/service/jwks/get API.
            String jwks = mApi.getServiceJwks(pretty, includePrivateKeys);

            if (jwks == null || jwks.length() == 0)
            {
                // 204 No Content
                return ResponseUtil.noContent();
            }

            // Response as "application/json;charset=UTF-8" with 200 OK.
            return ResponseUtil.ok(jwks);
        }
        catch (AuthleteApiException e)
        {
            // If the status code is not 302 Found.
            if (e.getStatusCode() != Status.FOUND.getStatusCode())
            {
                // The API call failed.
                throw apiFailure("/api/service/jwks/get", e);
            }

            // The value of 'Location' header.
            String location = getFirst(e.getResponseHeaders(), "Location");

            // 302 Found with Location header.
            return ResponseUtil.location(location);
        }
    }
public Response serviceJwksGet(
            boolean pretty, boolean includePrivateKeys) throws AuthleteApiException
    {
        try
        {
            // Call Authlete's /api/service/jwks/get API.
            String jwks = mApi.getServiceJwks(pretty, includePrivateKeys);

            if (jwks == null || jwks.length() == 0)
            {
                // 204 No Content
                return ResponseUtil.noContent();
            }

            // Response as "application/json;charset=UTF-8" with 200 OK.
            return ResponseUtil.ok(jwks);
        }
        catch (AuthleteApiException e)
        {
            // If the status code is not 302 Found.
            if (e.getStatusCode() != Status.FOUND.getStatusCode())
            {
                // The API call failed.
                throw apiFailure("/api/service/jwks/get", e);
            }

            // The value of 'Location' header.
            String location = getFirst(e.getResponseHeaders(), "Location");

            // 302 Found with Location header.
            return ResponseUtil.location(location);
        }
    }
public Response serviceJwksGet ( boolean pretty , boolean includePrivateKeys ) throws AuthleteApiException { try { // Call Authlete's /api/service/jwks/get API. String jwks = mApi . getServiceJwks ( pretty , includePrivateKeys ) ; if ( jwks == null || jwks . length ( ) == 0 ) { // 204 No Content return ResponseUtil . noContent ( ) ; } // Response as "application/json;charset=UTF-8" with 200 OK. return ResponseUtil . ok ( jwks ) ; } catch ( AuthleteApiException e ) { // If the status code is not 302 Found. if ( e . getStatusCode ( ) != Status . FOUND . getStatusCode ( ) ) { // The API call failed. throw apiFailure ( "/api/service/jwks/get" , e ) ; } // The value of 'Location' header. String location = getFirst ( e . getResponseHeaders ( ) , "Location" ) ; // 302 Found with Location header. return ResponseUtil . location ( location ) ; } }
Get the JWK Set of the service. This method calls Authlete's
{@code /api/service/jwks/get} API.
Get the JWK Set of the service . This method calls Authlete s {