Module org.elasticsearch.security
Class JwkSetLoader
java.lang.Object
org.elasticsearch.xpack.security.authc.jwt.JwkSetLoader
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable
This class is responsible for loading the JWK set for PKC signature from either a file or URL.
The JWK set is loaded once when the class is instantiated. Subsequent reloading is triggered
by invoking the
reload(ActionListener) method. The updated JWK set can be retrieved with
the getContentAndJwksAlgs() method once loading or reloading is completed.-
Constructor Summary
ConstructorsConstructorDescriptionJwkSetLoader(RealmConfig realmConfig, List<String> allowedJwksAlgsPkc, SSLService sslService) -
Method Summary
-
Constructor Details
-
JwkSetLoader
public JwkSetLoader(RealmConfig realmConfig, List<String> allowedJwksAlgsPkc, SSLService sslService)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-