Enum Class Group
- All Implemented Interfaces:
Serializable, Comparable<Group>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBrainpool P-256 (brainpoolP256r1) elliptic curve group.Brainpool P-384 (brainpoolP384r1) elliptic curve group.Brainpool P-512 (brainpoolP512r1) elliptic curve group.SM2 elliptic curve group.Hybrid curveSM2 + ML-KEM-768 key exchange group.2048-bit finite field Diffie-Hellman group.3072-bit finite field Diffie-Hellman group.4096-bit finite field Diffie-Hellman group.6144-bit finite field Diffie-Hellman group.8192-bit finite field Diffie-Hellman group.ML-KEM-1024 post-quantum key exchange group.ML-KEM-512 post-quantum key exchange group.ML-KEM-768 post-quantum key exchange group.NIST P-256 (secp256r1) elliptic curve group.Hybrid secp256r1 + ML-KEM-768 key exchange group.NIST P-384 (secp384r1) elliptic curve group.Hybrid secp384r1 + ML-KEM-1024 key exchange group.NIST P-521 (secp521r1) elliptic curve group.Curve25519 elliptic curve group.Hybrid x25519 + ML-KEM-768 key exchange group.Curve448 elliptic curve group. -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Returns the numeric identifier for this group as defined in the TLS supported groups registry.static GroupvalueOf(int groupId) Returns the Group enum constant for the given numeric group identifier.static GroupReturns the enum constant of this class with the specified name.static Group[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
secp256r1
NIST P-256 (secp256r1) elliptic curve group. -
secp384r1
NIST P-384 (secp384r1) elliptic curve group. -
secp521r1
NIST P-521 (secp521r1) elliptic curve group. -
brainpoolP256r1
Brainpool P-256 (brainpoolP256r1) elliptic curve group. -
brainpoolP384r1
Brainpool P-384 (brainpoolP384r1) elliptic curve group. -
brainpoolP512r1
Brainpool P-512 (brainpoolP512r1) elliptic curve group. -
x25519
Curve25519 elliptic curve group. -
x448
Curve448 elliptic curve group. -
ffdhe2048
2048-bit finite field Diffie-Hellman group. -
ffdhe3072
3072-bit finite field Diffie-Hellman group. -
ffdhe4096
4096-bit finite field Diffie-Hellman group. -
ffdhe6144
6144-bit finite field Diffie-Hellman group. -
ffdhe8192
8192-bit finite field Diffie-Hellman group. -
curveSM2
SM2 elliptic curve group. -
MLKEM512
ML-KEM-512 post-quantum key exchange group. -
MLKEM768
ML-KEM-768 post-quantum key exchange group. -
MLKEM1024
ML-KEM-1024 post-quantum key exchange group. -
SecP256r1MLKEM768
Hybrid secp256r1 + ML-KEM-768 key exchange group. -
X25519MLKEM768
Hybrid x25519 + ML-KEM-768 key exchange group. -
SecP384r1MLKEM1024
Hybrid secp384r1 + ML-KEM-1024 key exchange group. -
curveSM2MLKEM768
Hybrid curveSM2 + ML-KEM-768 key exchange group.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()Returns the numeric identifier for this group as defined in the TLS supported groups registry.- Returns:
- the numeric group identifier
-
valueOf
Returns the Group enum constant for the given numeric group identifier.- Parameters:
groupId- The numeric group identifier- Returns:
- The corresponding Group, or
nullif not found
-