Class AbstractOKPJWKFactory<A extends PublicKey,B extends PrivateKey,C extends AbstractOKPJWK<A,B>,D extends AbstractOKPJWKBuilder<A,B,C,D>,E extends AbstractOKPJWKGenerator<A,B,C,E>>

java.lang.Object
io.inverno.mod.security.jose.internal.jwk.AbstractJWKFactory<C,D,E>
io.inverno.mod.security.jose.internal.jwk.AbstractX509JWKFactory<A,B,C,D,E>
io.inverno.mod.security.jose.internal.jwk.okp.AbstractOKPJWKFactory<A,B,C,D,E>
Type Parameters:
A - the public key type
B - the private key type
C - the Octet Key Pair JWK type
D - the Octet Key Pair JWK builder type
E - the Octet Key Pair JWK generator type
All Implemented Interfaces:
JWKFactory<C,D,E>, OKPJWKFactory<A,B,C,D,E>, X509JWKFactory<A,B,C,D,E>
Direct Known Subclasses:
GenericEdECJWKFactory, GenericXECJWKFactory

public abstract class AbstractOKPJWKFactory<A extends PublicKey,B extends PrivateKey,C extends AbstractOKPJWK<A,B>,D extends AbstractOKPJWKBuilder<A,B,C,D>,E extends AbstractOKPJWKGenerator<A,B,C,E>> extends AbstractX509JWKFactory<A,B,C,D,E> implements OKPJWKFactory<A,B,C,D,E>

Base Octet Key Pair JSON Web Key factory implementation.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • AbstractOKPJWKFactory

      public AbstractOKPJWKFactory(JOSEConfiguration configuration, JWKStore jwkStore, JWKKeyResolver keyResolver, com.fasterxml.jackson.databind.ObjectMapper mapper, JWKURLResolver urlResolver, X509JWKCertPathValidator certPathValidator)

      Creates an OKP JWK factory.

      Parameters:
      configuration - the JOSE module configuration
      jwkStore - a JWK store
      keyResolver - a JWK key resolver
      mapper - an object mapper
      urlResolver - a JWK URL resolver
      certPathValidator - an X.509 certificate path validator
  • Method Details

    • supports

      public boolean supports(String kty)
      Description copied from interface: JWKFactory

      Determines whether the factory supports the specified key type.

      Specified by:
      supports in interface JWKFactory<A extends PublicKey,B extends PrivateKey,C extends AbstractOKPJWK<A,B>>
      Parameters:
      kty - a JWA key type
      Returns:
      true if the factory supports the key type, false otherwise