Class DefaultJwkSetFetcher
- java.lang.Object
-
- io.micronaut.security.token.jwt.signature.jwks.DefaultJwkSetFetcher
-
- All Implemented Interfaces:
JwkSetFetcher<com.nimbusds.jose.jwk.JWKSet>
@Singleton public class DefaultJwkSetFetcher extends java.lang.Object implements JwkSetFetcher<com.nimbusds.jose.jwk.JWKSet>
Default implementation ofJwkSetFetcherforJWKSet.- Since:
- 3.9.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultJwkSetFetcher.OptimizationsAOT Optimizations.
-
Field Summary
Fields Modifier and Type Field Description static DefaultJwkSetFetcher.OptimizationsOPTIMIZATIONS
-
Constructor Summary
Constructors Constructor Description DefaultJwkSetFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache(java.lang.String url)java.util.Optional<com.nimbusds.jose.jwk.JWKSet>fetch(java.lang.String url)
-
-
-
Field Detail
-
OPTIMIZATIONS
public static final DefaultJwkSetFetcher.Optimizations OPTIMIZATIONS
-
-
Method Detail
-
fetch
@NonNull public java.util.Optional<com.nimbusds.jose.jwk.JWKSet> fetch(@Nullable java.lang.String url)- Specified by:
fetchin interfaceJwkSetFetcher<com.nimbusds.jose.jwk.JWKSet>- Parameters:
url- The Jwks uri- Returns:
- The Json Web Key Set representation or an empty optional if it could not be loaded
-
clearCache
public void clearCache(@NonNull java.lang.String url)- Specified by:
clearCachein interfaceJwkSetFetcher<com.nimbusds.jose.jwk.JWKSet>- Parameters:
url- The Jwks uri Clears cache
-
-