Package com.nimbusds.jose.jwk.gen
Class OctetKeyPairGenerator
java.lang.Object
com.nimbusds.jose.jwk.gen.JWKGenerator<OctetKeyPair>
com.nimbusds.jose.jwk.gen.OctetKeyPairGenerator
- Version:
- 2023-01-02
- Author:
- Tim McLean
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe supported values for the "crv" property. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.nimbusds.jose.jwk.gen.JWKGenerator
algorithm, expirationTime, issueTime, keyID, keyIDFromThumbprint, keyOperations, keyStore, keyUse, notBeforeTime, provider, secureRandom
-
Field Details
-
SUPPORTED_CURVES
The supported values for the "crv" property.
-
-
Constructor Details
-
OctetKeyPairGenerator
Creates a new OctetKeyPair JWK generator.- Parameters:
crv- The curve. Must not benull.
-
-
Method Details
-
generate
Description copied from class:JWKGeneratorGenerates the JWK according to the set parameters.- Specified by:
generatein classJWKGenerator<OctetKeyPair>- Returns:
- The generated JWK.
- Throws:
JOSEException- If the key generation failed.
-