Class JwksUriSignatureFactory

java.lang.Object
io.micronaut.security.oauth2.client.JwksUriSignatureFactory

@Factory @Internal public class JwksUriSignatureFactory extends Object
Factory to create JwksSignature beans for the OpenIdProviderMetadata.getJwksUri() of OpenID clients.
Since:
1.3.0
Author:
Sergio del Amo
  • Constructor Details

    • JwksUriSignatureFactory

      public JwksUriSignatureFactory()
  • Method Details

    • createJwksUriSignature

      @Requires(property="micronaut.security.authentication", value="idtoken") @EachBean(DefaultOpenIdProviderMetadata.class) public JwksSignature createJwksUriSignature(@Parameter io.micronaut.context.BeanProvider<DefaultOpenIdProviderMetadata> openIdProviderMetadata, JwkValidator jwkValidator, JwkSetFetcher<com.nimbusds.jose.jwk.JWKSet> jwkSetFetcher)
      Parameters:
      openIdProviderMetadata - The open id provider metadata
      jwkValidator - JWK Validator
      jwkSetFetcher - Json Web Key Set Fetcher
      Returns:
      a JwksSignature pointed to the jwks_uri exposed via OpenID configuration