Module io.inverno.mod.security.jose
Package io.inverno.mod.security.jose.jwk
Interface JWKGenerator<A extends JWK,B extends JWKGenerator<A,B>>
- Type Parameters:
A
- the JWK type generated by the builderB
- the JWK generator type
- All Known Subinterfaces:
ECJWKGenerator<A,
,B> EdECJWKGenerator<A,
,B> OCTJWKGenerator<A,
,B> OKPJWKGenerator<A,
,B, C, D> PBES2JWKGenerator<A,
,B> RSAJWKGenerator<A,
,B> X509JWKGenerator<A,
,B, C, D> XECJWKGenerator<A,
B>
public interface JWKGenerator<A extends JWK,B extends JWKGenerator<A,B>>
a JWK generator is used to generate JSON Web Keys.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the algorithm intended for use with the key.generate()
Returns a single publisher that generates a new key.Specifies the key id that uniquely identifies the key.keyOperations
(String... key_ops) Specifies the set of key operations for which the key is intended to be used.publicKeyUse
(String use) Specifies the public key use.
-
Method Details
-
publicKeyUse
Specifies the public key use.
- Parameters:
use
- the public key use- Returns:
- this generator
-
keyOperations
Specifies the set of key operations for which the key is intended to be used.
- Parameters:
key_ops
- a list of key operations- Returns:
- this generator
-
keyId
Specifies the key id that uniquely identifies the key.
- Parameters:
kid
- a unique key id- Returns:
- this generator
-
algorithm
Specifies the algorithm intended for use with the key.
- Parameters:
alg
- a JWA algorithm- Returns:
- this generator
-
generate
Returns a single publisher that generates a new key.
- Returns:
- a single key publisher
- Throws:
JWKGenerateException
- if there was an error generating the keyJWKProcessingException
- if there was a processing error
-