public static final class Jwks.CRV extends Object
public static final
) constant for direct type-safe
reference in application code. For example:
Jwks.CRV.P256.keyPair().build();
They are also available together as a Registry
instance via the get()
method.
get()
Modifier and Type | Field and Description |
---|---|
static Curve |
Ed25519
Ed25519 Elliptic Curve defined by
RFC 8037, Section 3.1
using the native Java JCA Ed25519 1 algorithm. |
static Curve |
Ed448
|
static Curve |
P256
P-256 Elliptic Curve defined by
RFC 7518, Section 6.2.1.1
using the native Java JCA secp256r1 algorithm. |
static Curve |
P384
P-384 Elliptic Curve defined by
RFC 7518, Section 6.2.1.1
using the native Java JCA secp384r1 algorithm. |
static Curve |
P521
P-521 Elliptic Curve defined by
RFC 7518, Section 6.2.1.1
using the native Java JCA secp521r1 algorithm. |
static Curve |
X25519
|
static Curve |
X448
|
Modifier and Type | Method and Description |
---|---|
static Registry<String,Curve> |
get()
Returns a registry of all standard Elliptic Curves in the
JSON Web Key Elliptic Curve Registry
defined by RFC 7518, Section 7.6
(for Weierstrass Elliptic Curves) and
RFC 8037, Section 5 (for Edwards Elliptic Curves). |
public static final Curve P256
P-256
Elliptic Curve defined by
RFC 7518, Section 6.2.1.1
using the native Java JCA secp256r1
algorithm.public static final Curve P384
P-384
Elliptic Curve defined by
RFC 7518, Section 6.2.1.1
using the native Java JCA secp384r1
algorithm.public static final Curve P521
P-521
Elliptic Curve defined by
RFC 7518, Section 6.2.1.1
using the native Java JCA secp521r1
algorithm.public static final Curve Ed25519
Ed25519
Elliptic Curve defined by
RFC 8037, Section 3.1
using the native Java JCA Ed25519
1 algorithm.
1 Requires Java 15 or a compatible JCA Provider (like BouncyCastle) in the runtime classpath. If on Java 14 or earlier, BouncyCastle will be used automatically if found in the runtime classpath.
public static final Curve Ed448
Ed448
Elliptic Curve defined by
RFC 8037, Section 3.1
using the native Java JCA Ed448
1 algorithm.
1 Requires Java 15 or a compatible JCA Provider (like BouncyCastle) in the runtime classpath. If on Java 14 or earlier, BouncyCastle will be used automatically if found in the runtime classpath.
public static final Curve X25519
X25519
Elliptic Curve defined by
RFC 8037, Section 3.2
using the native Java JCA X25519
1 algorithm.
1 Requires Java 11 or a compatible JCA Provider (like BouncyCastle) in the runtime classpath. If on Java 10 or earlier, BouncyCastle will be used automatically if found in the runtime classpath.
public static final Curve X448
X448
Elliptic Curve defined by
RFC 8037, Section 3.2
using the native Java JCA X448
1 algorithm.
1 Requires Java 11 or a compatible JCA Provider (like BouncyCastle) in the runtime classpath. If on Java 10 or earlier, BouncyCastle will be used automatically if found in the runtime classpath.
public static Registry<String,Curve> get()
JSON Web Key Elliptic Curve Registry
defined by RFC 7518, Section 7.6
(for Weierstrass Elliptic Curves) and
RFC 8037, Section 5 (for Edwards Elliptic Curves).JSON Web Key Elliptic Curve Registry
.Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.