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 Object
implements JwkSetFetcher<com.nimbusds.jose.jwk.JWKSet>
Default implementation of 
JwkSetFetcher for JWKSet.- Since:
 - 3.9.0
 - Author:
 - Sergio del Amo
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAOT Optimizations. - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.DefaultJwkSetFetcher(JwksClient jwksClient)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclearCache(@NonNull String url) @NonNull org.reactivestreams.Publisher<com.nimbusds.jose.jwk.JWKSet>@NonNull Optional<com.nimbusds.jose.jwk.JWKSet>Deprecated, for removal: This API element is subject to removal in a future version. 
- 
Field Details
- 
OPTIMIZATIONS
 
 - 
 - 
Constructor Details
- 
DefaultJwkSetFetcher
Deprecated, for removal: This API element is subject to removal in a future version. - 
DefaultJwkSetFetcher
 
 - 
 - 
Method Details
- 
fetch
@NonNull @Deprecated(forRemoval=true, since="4.5.0") public @NonNull Optional<com.nimbusds.jose.jwk.JWKSet> fetch(String url) Deprecated, for removal: This API element is subject to removal in a future version.- 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
 
 - 
fetch
@NonNull @SingleResult public @NonNull org.reactivestreams.Publisher<com.nimbusds.jose.jwk.JWKSet> fetch(@Nullable @Nullable String providerName, @Nullable @Nullable String url) - Specified by:
 fetchin interfaceJwkSetFetcher<com.nimbusds.jose.jwk.JWKSet>- Parameters:
 providerName- The jwks provider nameurl- The Jwks uri- Returns:
 - The Json Web Key Set representation or an empty optional if it could not be loaded
 
 - 
clearCache
- Specified by:
 clearCachein interfaceJwkSetFetcher<com.nimbusds.jose.jwk.JWKSet>- Parameters:
 url- The Jwks uri Clears cache
 
 - 
 
DefaultJwkSetFetcher(io.micronaut.security.token.jwt.signature.jwks.JwksClient)instead.