public class OctetKeyPairGenerator extends JWKGenerator<OctetKeyPair>
Modifier and Type | Field and Description |
---|---|
static Set<Curve> |
SUPPORTED_CURVES
The supported values for the "crv" property.
|
Constructor and Description |
---|
OctetKeyPairGenerator(Curve crv)
Creates a new OctetKeyPair JWK generator.
|
Modifier and Type | Method and Description |
---|---|
OctetKeyPair |
generate()
Generates the JWK according to the set parameters.
|
algorithm, keyID, keyIDFromThumbprint, keyOperations, keyStore, keyUse
public static final Set<Curve> SUPPORTED_CURVES
public OctetKeyPairGenerator(Curve crv)
crv
- The curve. Must not be null
.public OctetKeyPair generate() throws JOSEException
JWKGenerator
generate
in class JWKGenerator<OctetKeyPair>
JOSEException
- If the key generation failed.Copyright © 2019 Connect2id Ltd.. All rights reserved.