Class GenericJWKKeyResolver

java.lang.Object
io.inverno.mod.security.jose.internal.jwk.GenericJWKKeyResolver
All Implemented Interfaces:
JWKKeyResolver

public class GenericJWKKeyResolver extends Object implements JWKKeyResolver

Generic JWK key resolver implementation.

This is an overridable bean which can be overriden by injecting a custom JWKKeyResolver instance when building the JOSE module.

This implementation relies on a KeyStore to securely load keys and certificates identified by key id, X.509 SHA1 certificate thumbprint or X.509 SHA256 certificate thumbprint.

The key store to use can be specified explicitly or it can loaded from the configuration (see JOSEConfiguration.key_store(), JOSEConfiguration.key_store_password() and JOSEConfiguration.key_store_type()).

Key resolution will be disabled if the key store is missing which happens when no explicit key store has been specified, no key store could be loaded from configuration because of missing parameters or when the optional resource service used to load the configuraiton key store is missing.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • GenericJWKKeyResolver

      public GenericJWKKeyResolver(JOSEConfiguration configuration)

      Creates a generic JWK key resolver.

      Parameters:
      configuration - the JOSE module configuration
  • Method Details