public class JSONWebKeySetHelper extends AbstractHttpHelper
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> |
retrieveKeysFromIssuer(String issuer,
java.util.function.Consumer<HttpURLConnection> consumer)
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> |
retrieveKeysFromJWKS(String endpoint,
java.util.function.Consumer<HttpURLConnection> consumer)
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.
|
static List<JSONWebKey> |
retrieveKeysFromWellKnownConfiguration(String endpoint,
java.util.function.Consumer<HttpURLConnection> consumer)
Retrieve JSON Web Keys from an OpenID Connect well known discovery endpoint.
|
buildURLConnection, get
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> retrieveKeysFromIssuer(String issuer, java.util.function.Consumer<HttpURLConnection> consumer)
issuer
- the OIDC issuer used to resolve the OpenID Connect discovery document which will be used to resolve the JWKS endpoint.consumer
- an optional consumer to modify the HTTP URL Connection before making the request.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> retrieveKeysFromWellKnownConfiguration(String endpoint, java.util.function.Consumer<HttpURLConnection> consumer)
endpoint
- the OpenID Connect well known discovery endpoint used to resolve the JWKS endpoint.consumer
- an optional consumer to modify the HTTP URL Connection before making the request.public static List<JSONWebKey> retrieveKeysFromJWKS(String endpoint)
endpoint
- the JWKS endpoint.public static List<JSONWebKey> retrieveKeysFromJWKS(String endpoint, java.util.function.Consumer<HttpURLConnection> consumer)
endpoint
- the JWKS endpoint.consumer
- an optional consumer to modify the HTTP URL Connection before making the request.public static List<JSONWebKey> retrieveKeysFromJWKS(HttpURLConnection httpURLConnection)
httpURLConnection
- the URL connection that will be used to connect to the JWKS endpoint.Copyright © 2021. All rights reserved.