Module io.inverno.mod.security.jose
Class GenericEdECJWKGenerator
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<EdECPublicKey,EdECPrivateKey,GenericEdECJWK,GenericEdECJWKGenerator>
io.inverno.mod.security.jose.internal.jwk.okp.GenericEdECJWKGenerator
- All Implemented Interfaces:
JWKGenerator<GenericEdECJWK,,GenericEdECJWKGenerator> EdECJWKGenerator<GenericEdECJWK,,GenericEdECJWKGenerator> OKPJWKGenerator<EdECPublicKey,,EdECPrivateKey, GenericEdECJWK, GenericEdECJWKGenerator> X509JWKGenerator<EdECPublicKey,EdECPrivateKey, GenericEdECJWK, GenericEdECJWKGenerator>
public class GenericEdECJWKGenerator
extends AbstractOKPJWKGenerator<EdECPublicKey,EdECPrivateKey,GenericEdECJWK,GenericEdECJWKGenerator>
implements EdECJWKGenerator<GenericEdECJWK,GenericEdECJWKGenerator>
Generic Edward-Curve JSON Web Key generator.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
FieldsFields inherited from class io.inverno.mod.security.jose.internal.jwk.okp.AbstractOKPJWKGenerator
curveFields inherited from class io.inverno.mod.security.jose.internal.jwk.AbstractJWKGenerator
alg, key_ops, kid, use -
Constructor Summary
ConstructorsConstructorDescriptionCreates a generic EdEC JWK generator.GenericEdECJWKGenerator(Map<String, Object> parameters) Creates a generic EdEC JWK generator initialized with the specified parameters map. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<GenericEdECJWK>Generates the JWK after all checks and processing have terminated successfully.protected reactor.core.publisher.Mono<Void>verify()Verifies that the generator's parameters are consistent and that we can proceed with the generation of the key.Methods inherited from class io.inverno.mod.security.jose.internal.jwk.okp.AbstractOKPJWKGenerator
curve, setMethods inherited from class io.inverno.mod.security.jose.internal.jwk.AbstractJWKGenerator
algorithm, generate, keyId, keyOperations, publicKeyUseMethods 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, publicKeyUseMethods inherited from interface io.inverno.mod.security.jose.jwk.okp.OKPJWKGenerator
curve
-
Field Details
-
DEFAULT_CURVE
The default OKP curve
-
-
Constructor Details
-
GenericEdECJWKGenerator
public GenericEdECJWKGenerator()Creates a generic EdEC JWK generator.
-
GenericEdECJWKGenerator
Creates a generic EdEC 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
-
verify
protected reactor.core.publisher.Mono<Void> verify() throws JWKGenerateException, JWKProcessingExceptionDescription copied from class:AbstractJWKGeneratorVerifies that the generator's parameters are consistent and that we can proceed with the generation of the key.
- Overrides:
verifyin classAbstractJWKGenerator<GenericEdECJWK,GenericEdECJWKGenerator> - Returns:
- an empty single publisher which completes in error if generator's parameters are invalid or inconsistent
- Throws:
JWKGenerateException- if there was an error generating the JWKJWKProcessingException- if there was a JWK processing error
-
doGenerate
protected reactor.core.publisher.Mono<GenericEdECJWK> doGenerate() throws JWKGenerateException, JWKProcessingExceptionDescription copied from class:AbstractJWKGeneratorGenerates the JWK after all checks and processing have terminated successfully.
- Specified by:
doGeneratein classAbstractJWKGenerator<GenericEdECJWK,GenericEdECJWKGenerator> - Returns:
- a single JWK publisher
- Throws:
JWKGenerateException- if there was an error generating the JWKJWKProcessingException- if there was a JWK processing error
-