Class AsyncHttpsJwks
java.lang.Object
org.jose4j.jwk.HttpsJwks
io.confluent.kafka.clients.plugins.auth.jwt.AsyncHttpsJwks
- All Implemented Interfaces:
Closeable,AutoCloseable
Extends
HttpsJwks with an asynchronous refresh implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAsyncHttpsJwks(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.AsyncHttpsJwks(org.jose4j.http.SimpleGet httpGet, String location, boolean unsafeAllowed, long refreshIntervalMs) -
Method Summary
Methods inherited from class org.jose4j.jwk.HttpsJwks
getLocation, setDefaultCacheDuration, setRefreshReprieveThreshold, setRetainCacheOnErrorDuration, setSimpleHttpGet
-
Field Details
-
DEFAULT_REFRESH_INTERVAL_MS
public static final long DEFAULT_REFRESH_INTERVAL_MS- See Also:
-
-
Constructor Details
-
AsyncHttpsJwks
Create a new HttpsJwks that can be used to retrieve JWKs from the given location asynchronously.- Parameters:
location- the HTTPS URI of the JSON Web Key Set
-
AsyncHttpsJwks
-
AsyncHttpsJwks
-
AsyncHttpsJwks
public AsyncHttpsJwks(org.jose4j.http.SimpleGet httpGet, String location, boolean unsafeAllowed, long refreshIntervalMs)
-
-
Method Details
-
refresh
public void refresh()- Overrides:
refreshin classorg.jose4j.jwk.HttpsJwks
-
getJsonWebKeys
- Overrides:
getJsonWebKeysin classorg.jose4j.jwk.HttpsJwks
-
isRunning
public boolean isRunning() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-