public class JSONWebKeySetHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONWebKeySetHelper.JSONWebKeySetException |
| Constructor and Description |
|---|
JSONWebKeySetHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<JSONWebKey> |
retrieveKeysFromIssuer(String issuer)
Retrieve a list of JSON Web Keys from the JWK endpoint using the OIDC issuer as a starting point.
|
static List<JSONWebKey> |
retrieveKeysFromJWKS(HttpURLConnection httpURLConnection)
Retrieve JSON Web Keys from a JSON Web Key Set (JWKS) endpoint.
|
static List<JSONWebKey> |
retrieveKeysFromJWKS(String endpoint)
Retrieve JSON Web Keys from a JSON Web Key Set (JWKS) endpoint.
|
static List<JSONWebKey> |
retrieveKeysFromWellKnownConfiguration(HttpURLConnection httpURLConnection)
Retrieve JSON Web Keys from an OpenID Connect well known discovery endpoint.
|
static List<JSONWebKey> |
retrieveKeysFromWellKnownConfiguration(String endpoint)
Retrieve JSON Web Keys from an OpenID Connect well known discovery endpoint.
|
public static List<JSONWebKey> retrieveKeysFromIssuer(String issuer)
issuer - the OIDC issuer used to resolve the OpenID Connect discovery document which will be used to resolve the JWKS endpoint.public static List<JSONWebKey> retrieveKeysFromWellKnownConfiguration(HttpURLConnection httpURLConnection)
httpURLConnection - the HTTP URL Connection that will be used to connect to the discovery endpoint used to resolve the JWKS endpoint.public static List<JSONWebKey> retrieveKeysFromWellKnownConfiguration(String endpoint)
endpoint - the OpenID Connect well known discovery endpoint used to resolve the JWKS endpoint.public static List<JSONWebKey> retrieveKeysFromJWKS(String endpoint)
endpoint - the JWKS endpoint.public static List<JSONWebKey> retrieveKeysFromJWKS(HttpURLConnection httpURLConnection)
httpURLConnection - the URL connection that will be used to connect to the JWKS endpoint.Copyright © 2020. All rights reserved.