Module io.inverno.mod.security.jose
Class GenericXECJWKGenerator
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<XECPublicKey,XECPrivateKey,GenericXECJWK,GenericXECJWKGenerator>
io.inverno.mod.security.jose.internal.jwk.okp.GenericXECJWKGenerator
- All Implemented Interfaces:
JWKGenerator<GenericXECJWK,,GenericXECJWKGenerator> OKPJWKGenerator<XECPublicKey,,XECPrivateKey, GenericXECJWK, GenericXECJWKGenerator> XECJWKGenerator<GenericXECJWK,,GenericXECJWKGenerator> X509JWKGenerator<XECPublicKey,XECPrivateKey, GenericXECJWK, GenericXECJWKGenerator>
public class GenericXECJWKGenerator
extends AbstractOKPJWKGenerator<XECPublicKey,XECPrivateKey,GenericXECJWK,GenericXECJWKGenerator>
implements XECJWKGenerator<GenericXECJWK,GenericXECJWKGenerator>
Generic Extended Elliptic 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 XEC JWK generator.GenericXECJWKGenerator(Map<String, Object> parameters) Creates a generic XEC JWK generator initialized with the specified parameters map. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the algorithm intended for use with the key.protected reactor.core.publisher.Mono<GenericXECJWK>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
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
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
-
GenericXECJWKGenerator
public GenericXECJWKGenerator()Creates a generic XEC JWK generator.
-
GenericXECJWKGenerator
Creates a generic XEC 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
-
algorithm
Description copied from interface:JWKGeneratorSpecifies the algorithm intended for use with the key.
- Specified by:
algorithmin interfaceJWKGenerator<GenericXECJWK,GenericXECJWKGenerator> - Overrides:
algorithmin classAbstractJWKGenerator<GenericXECJWK,GenericXECJWKGenerator> - Parameters:
alg- a JWA algorithm- Returns:
- this generator
-
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<GenericXECJWK,GenericXECJWKGenerator> - 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
Description copied from class:AbstractJWKGeneratorGenerates the JWK after all checks and processing have terminated successfully.
- Specified by:
doGeneratein classAbstractJWKGenerator<GenericXECJWK,GenericXECJWKGenerator> - Returns:
- a single JWK publisher
-