Package | Description |
---|---|
org.forgerock.json.jose.jwk |
Classes and interfaces for creating and manipulating JWKs.
|
org.forgerock.json.jose.jws |
Classes and interfaces for JWT signing and JWS'.
|
org.forgerock.json.jose.utils |
Utility classes for JWT creation and manipulation.
|
Modifier and Type | Method and Description |
---|---|
SupportedEllipticCurve |
OkpJWK.OctetECKey.getCurve()
The curve that the key is for.
|
SupportedEllipticCurve |
OkpJWK.OctetECPrivateKey.getCurve() |
SupportedEllipticCurve |
OkpJWK.OctetECPublicKey.getCurve() |
SupportedEllipticCurve |
OkpJWK.getEllipticCurve()
The supported elliptic curve that this key is on.
|
SupportedEllipticCurve |
EllipticCurveJwk.getEllipticCurve()
The elliptic curve this JWK is on.
|
SupportedEllipticCurve |
EcJWK.getEllipticCurve()
Gets the elliptic curve.
|
Modifier and Type | Method and Description |
---|---|
static EcJWK.Builder |
EcJWK.builder(SupportedEllipticCurve curve,
String x,
String y)
Get the builder.
|
OkpJWK.Builder |
OkpJWK.Builder.curve(SupportedEllipticCurve curve)
Sets the elliptic curve that this key uses.
|
static OkpJWK |
OkpJWK.generateKeyPair(SupportedEllipticCurve curve)
Generates a fresh OKP JWK with both public and private claims on the given curve.
|
static boolean |
EcJWK.isPublicKeyValid(ECPublicKey publicKey,
SupportedEllipticCurve curve)
Checks whether the public key actually lies on the curve it claims to be on.
|
Constructor and Description |
---|
OctetECPrivateKey(byte[] d,
SupportedEllipticCurve curve)
Constructs the private key with the given values.
|
OctetECPublicKey(byte[] x,
SupportedEllipticCurve curve)
Constructs the public key with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
static SupportedEllipticCurve |
SupportedEllipticCurve.forKey(Key key)
Determines the standard curve that matches the given (private or public) key.
|
static SupportedEllipticCurve |
SupportedEllipticCurve.forKey(Key key,
KeyUse use)
Determines the standard curve that matches the given (private or public) key.
|
static SupportedEllipticCurve |
SupportedEllipticCurve.forName(String curveName)
Returns the curve parameters for the given standard curve name (crv claim in a JWK).
|
static SupportedEllipticCurve |
SupportedEllipticCurve.forSignature(byte[] signature)
Determines the supported curve parameters for the given ECDSA signature.
|
static SupportedEllipticCurve |
SupportedEllipticCurve.forSignature(byte[] signature,
JwsAlgorithmType type)
Determines the supported curve parameters for the given signature.
|
static SupportedEllipticCurve |
SupportedEllipticCurve.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportedEllipticCurve[] |
SupportedEllipticCurve.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static SupportedEllipticCurve |
XECUtils.curve(Key key)
Returns the curve that this XECKey is for.
|
Modifier and Type | Method and Description |
---|---|
static PrivateKey |
XECUtils.xecPrivateKey(SupportedEllipticCurve curve,
byte[] privateValue)
Converts a private scalar byte value into a XECPrivateKey on the given curve.
|
static PublicKey |
XECUtils.xecPublicKey(SupportedEllipticCurve curve,
BigInteger uCoord)
Converts a public u-coordinate into a XECPublicKey on the given curve.
|
Copyright 2010-2022 ForgeRock AS.