public final class AsyncHttpsJwks extends org.jose4j.jwk.HttpsJwks implements Closeable
HttpsJwks with an asynchronous refresh implementation.| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_REFRESH_INTERVAL_MS |
| Constructor and Description |
|---|
AsyncHttpsJwks(org.jose4j.http.SimpleGet httpGet,
String location,
boolean unsafeAllowed,
long refreshIntervalMs) |
AsyncHttpsJwks(String location) |
AsyncHttpsJwks(String location,
boolean unsafeAllowed,
long refreshIntervalMs) |
AsyncHttpsJwks(URI location)
Create a new HttpsJwks that can be used to retrieve JWKs from the given location asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<org.jose4j.jwk.JsonWebKey> |
getJsonWebKeys() |
boolean |
isRunning() |
void |
refresh() |
public static final long DEFAULT_REFRESH_INTERVAL_MS
public AsyncHttpsJwks(URI location)
location - the HTTPS URI of the JSON Web Key Setpublic AsyncHttpsJwks(String location)
public AsyncHttpsJwks(String location, boolean unsafeAllowed, long refreshIntervalMs)
public AsyncHttpsJwks(org.jose4j.http.SimpleGet httpGet,
String location,
boolean unsafeAllowed,
long refreshIntervalMs)
public void refresh()
refresh in class org.jose4j.jwk.HttpsJwkspublic List<org.jose4j.jwk.JsonWebKey> getJsonWebKeys()
getJsonWebKeys in class org.jose4j.jwk.HttpsJwkspublic boolean isRunning()
public void close()
close in interface Closeableclose in interface AutoCloseable