public class JWKSetParser extends Object
| Constructor and Description |
|---|
JWKSetParser(int readTimeout,
int connTimeout)
Constructor allowing the configuration of the read and connection timeouts used
by the HTTP client for this parser.
|
JWKSetParser(SimpleHTTPClient simpleHTTPClient)
Alternative constructor allowing the calling class to pass in an
already-configured
SimpleHTTPClient. |
JWKSetParser(SimpleHTTPClient simpleHTTPClient,
JWKLookup jwkLookup)
Alternative constructor allowing the calling class to pass in an
already-configured
SimpleHTTPClient. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Key> |
generateMapFromJWK(URL url)
Provides a Map of KeyId:Keys as indicated by the JWKSet's URL.
|
Map<String,Key> |
jwkSetToMap(JWKSet jwkSet)
Converts a supplied JWKSet into a map of key:values, where the keys are the keyIds and the
values are verification keys.
|
public JWKSetParser(int readTimeout,
int connTimeout)
readTimeout - read timeout in msconnTimeout - connection timeout in mspublic JWKSetParser(SimpleHTTPClient simpleHTTPClient)
SimpleHTTPClient.simpleHTTPClient - SimpleHTTPClient used to gather HTTP informationpublic JWKSetParser(SimpleHTTPClient simpleHTTPClient, JWKLookup jwkLookup)
SimpleHTTPClient.simpleHTTPClient - SimpleHTTPClient used to gather HTTP informationjwkLookup - to convert the jwk into a real keypublic Map<String,Key> generateMapFromJWK(URL url) throws FailedToLoadJWKException
url - The URL from which to gather the JWKSetFailedToLoadJWKException - If there are problems connecting to or parsing the responsepublic Map<String,Key> jwkSetToMap(JWKSet jwkSet) throws FailedToLoadJWKException
jwkSet - The JWKSet to convertFailedToLoadJWKException - If there are issues parsing the JWKSet's contentsCopyright © 2025 Open Identity Platform Community. All rights reserved.