Module io.inverno.mod.security.jose
Interface OCTJWKGenerator<A extends OCTJWK,B extends OCTJWKGenerator<A,B>>
- Type Parameters:
A
- the Octet JWK typeB
- the Octet JWK generator type
- All Superinterfaces:
JWKGenerator<A,
B>
public interface OCTJWKGenerator<A extends OCTJWK,B extends OCTJWKGenerator<A,B>>
extends JWKGenerator<A,B>
An Octet JSON Web Key generator.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionkeySize
(int keySize) Specifies the size of the key to generate in bytes.secureRandom
(SecureRandom secureRandom) Specifies the secure random to use to generate the key.Methods inherited from interface io.inverno.mod.security.jose.jwk.JWKGenerator
algorithm, generate, keyId, keyOperations, publicKeyUse
-
Method Details
-
keySize
Specifies the size of the key to generate in bytes.
- Parameters:
keySize
- the size of the key in bytes- Returns:
- this generator
-
secureRandom
Specifies the secure random to use to generate the key.
If not specified a default secure random will be used.
- Parameters:
secureRandom
- a secure random- Returns:
- this builder
-