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(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 void refresh()
refresh
in class org.jose4j.jwk.HttpsJwks
public List<org.jose4j.jwk.JsonWebKey> getJsonWebKeys()
getJsonWebKeys
in class org.jose4j.jwk.HttpsJwks
public boolean isRunning()
public void close()
close
in interface Closeable
close
in interface AutoCloseable