Module io.inverno.mod.security.jose
Class AbstractOKPJWKGenerator<A extends PublicKey,B extends PrivateKey,C extends AbstractOKPJWK<A,B>,D extends AbstractOKPJWKGenerator<A,B,C,D>>
java.lang.Object
io.inverno.mod.security.jose.internal.jwk.AbstractJWKGenerator<C,D>
io.inverno.mod.security.jose.internal.jwk.AbstractX509JWKGenerator<A,B,C,D>
io.inverno.mod.security.jose.internal.jwk.okp.AbstractOKPJWKGenerator<A,B,C,D>
- Type Parameters:
A- the public key typeB- the private key typeC- the Octet Key Pair JWK typeD- the Octet Key Pair JWK generator type
- All Implemented Interfaces:
JWKGenerator<C,,D> OKPJWKGenerator<A,,B, C, D> X509JWKGenerator<A,B, C, D>
- Direct Known Subclasses:
GenericEdECJWKGenerator,GenericXECJWKGenerator
public abstract class AbstractOKPJWKGenerator<A extends PublicKey,B extends PrivateKey,C extends AbstractOKPJWK<A,B>,D extends AbstractOKPJWKGenerator<A,B,C,D>>
extends AbstractX509JWKGenerator<A,B,C,D>
implements OKPJWKGenerator<A,B,C,D>
Base Octet Key Pair JSON Web Key generator implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OKPCurveThe Curve parameter as defined by RFC8037 Section 3.Fields inherited from class io.inverno.mod.security.jose.internal.jwk.AbstractJWKGenerator
alg, key_ops, kid, use -
Constructor Summary
ConstructorsConstructorDescriptionCreates an OKP JWK generator.AbstractOKPJWKGenerator(Map<String, Object> parameters) Creates an OKP JWK generator initialized with the specified parameters map. -
Method Summary
Methods inherited from class io.inverno.mod.security.jose.internal.jwk.AbstractJWKGenerator
algorithm, doGenerate, generate, keyId, keyOperations, publicKeyUse, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.security.jose.jwk.JWKGenerator
algorithm, generate, keyId, keyOperations, publicKeyUse
-
Field Details
-
curve
The Curve parameter as defined by RFC8037 Section 3.
-
-
Constructor Details
-
AbstractOKPJWKGenerator
public AbstractOKPJWKGenerator()Creates an OKP JWK generator.
-
AbstractOKPJWKGenerator
Creates an OKP JWK generator initialized with the specified parameters map.
- Parameters:
parameters- a parameters map used to initialize the generator- Throws:
JWKGenerateException- if there was an error reading the parameters map
-
-
Method Details
-
set
Description copied from class:AbstractJWKGeneratorSets the specified parameter into the generator.
Unsupported parameters are ignored.
- Overrides:
setin classAbstractJWKGenerator<C extends AbstractOKPJWK<A,B>, D extends AbstractOKPJWKGenerator<A, B, C, D>> - Parameters:
field- the parameter namevalue- the parameter value- Throws:
JWKGenerateException- if there was an error reading the value
-
curve
Description copied from interface:OKPJWKGeneratorSpecifies the OKP curve JWA name.
- Specified by:
curvein interfaceOKPJWKGenerator<A extends PublicKey,B extends PrivateKey, C extends AbstractOKPJWK<A, B>, D extends AbstractOKPJWKGenerator<A, B, C, D>> - Parameters:
crv- the OKP curve JWA name- Returns:
- this generator
-