Interface JWKFactory<A extends JWK,B extends JWKBuilder<A,?>,C extends JWKGenerator<A,?>>

Type Parameters:
A - the JWK type built by the builder
B - the JWK builder type
C - the JWK generator type
All Known Subinterfaces:
ECJWKFactory<A,B,C>, EdECJWKFactory<A,B,C>, OCTJWKFactory<A,B,C>, OKPJWKFactory<A,B,C,D,E>, PBES2JWKFactory<A,B,C>, RSAJWKFactory<A,B,C>, X509JWKFactory<A,B,C,D,E>, XECJWKFactory<A,B,C>

public interface JWKFactory<A extends JWK,B extends JWKBuilder<A,?>,C extends JWKGenerator<A,?>>

A JWK factory is used to build, read or generate a particular type of key.

Since:
1.5
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new JWK builder for the key type supported by the factory.
    generate(String alg, Map<String,Object> parameters)
    Generates a new key using the specified parameters.
    Returns a new JWK builder for the key type supported by the factory.
    read(String jwk)
    Reads the specified JWK or JWK set serialized as JSON.
    Read the specified JWK or JWK set represented in the specified map.
    boolean
    Determines whether the factory supports the specified key type.
    boolean
    Determines whether the factory supports the specified algorithm.