Enum Group

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Group>

    public enum Group
    extends java.lang.Enum<Group>
    All the supported named groups for TLS 1.3.
    See Also:
    The supported groups registry
    • Enum Constant Detail

      • secp256r1

        public static final Group secp256r1
      • secp384r1

        public static final Group secp384r1
      • secp521r1

        public static final Group secp521r1
      • x25519

        public static final Group x25519
      • x448

        public static final Group x448
      • ffdhe2048

        public static final Group ffdhe2048
      • ffdhe3072

        public static final Group ffdhe3072
      • ffdhe4096

        public static final Group ffdhe4096
      • ffdhe6144

        public static final Group ffdhe6144
      • ffdhe8192

        public static final Group ffdhe8192
      • MLKEM512

        public static final Group MLKEM512
      • MLKEM768

        public static final Group MLKEM768
      • MLKEM1024

        public static final Group MLKEM1024
      • SecP256r1MLKEM768

        public static final Group SecP256r1MLKEM768
      • X25519MLKEM768

        public static final Group X25519MLKEM768
      • SecP384r1MLKEM1024

        public static final Group SecP384r1MLKEM1024
    • Method Detail

      • values

        public static Group[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Group c : Group.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Group valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getId

        public int getId()
        Returns:
        the id
      • valueOf

        public static Group valueOf​(int groupId)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        groupId - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null