getAllJWK
JWKs
Get all JWKs of the configured AuthorizationServer. See the [JWKs RFC](https://datatracker.ietf.org/doc/html/rfc7517) for details.
/.well-known/jwks.json
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"/nevisauth/.well-known/jwks.json"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.JSONWebKeySetJWKsApi;
import java.io.File;
import java.util.*;
public class JSONWebKeySetJWKsApiExample {
public static void main(String[] args) {
// Create an instance of the API class
JSONWebKeySetJWKsApi apiInstance = new JSONWebKeySetJWKsApi();
try {
Object result = apiInstance.getAllJWK();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JSONWebKeySetJWKsApi#getAllJWK");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
try {
final result = await api_instance.getAllJWK();
print(result);
} catch (e) {
print('Exception when calling DefaultApi->getAllJWK: $e\n');
}
import org.openapitools.client.api.JSONWebKeySetJWKsApi;
public class JSONWebKeySetJWKsApiExample {
public static void main(String[] args) {
JSONWebKeySetJWKsApi apiInstance = new JSONWebKeySetJWKsApi();
try {
Object result = apiInstance.getAllJWK();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JSONWebKeySetJWKsApi#getAllJWK");
e.printStackTrace();
}
}
}
// Create an instance of the API class
JSONWebKeySetJWKsApi *apiInstance = [[JSONWebKeySetJWKsApi alloc] init];
// JWKs
[apiInstance getAllJWKWithCompletionHandler:
^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var NevisAuthRestApi = require('nevis_auth_rest_api');
// Create an instance of the API class
var api = new NevisAuthRestApi.JSONWebKeySetJWKsApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAllJWK(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getAllJWKExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new JSONWebKeySetJWKsApi();
try {
// JWKs
Object result = apiInstance.getAllJWK();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling JSONWebKeySetJWKsApi.getAllJWK: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\JSONWebKeySetJWKsApi();
try {
$result = $api_instance->getAllJWK();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling JSONWebKeySetJWKsApi->getAllJWK: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::JSONWebKeySetJWKsApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::JSONWebKeySetJWKsApi->new();
eval {
my $result = $api_instance->getAllJWK();
print Dumper($result);
};
if ($@) {
warn "Exception when calling JSONWebKeySetJWKsApi->getAllJWK: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.JSONWebKeySetJWKsApi()
try:
# JWKs
api_response = api_instance.get_all_jwk()
pprint(api_response)
except ApiException as e:
print("Exception when calling JSONWebKeySetJWKsApi->getAllJWK: %s\n" % e)
extern crate JSONWebKeySetJWKsApi;
pub fn main() {
let mut context = JSONWebKeySetJWKsApi::Context::default();
let result = client.getAllJWK(&context).wait();
println!("{:?}", result);
}