Enum Class EncryptionLevel

java.lang.Object
java.lang.Enum<EncryptionLevel>
io.github.mahmoudimus.quic.EncryptionLevel
All Implemented Interfaces:
Serializable, Comparable<EncryptionLevel>, Constable

public enum EncryptionLevel extends Enum<EncryptionLevel>
The four QUIC encryption levels (RFC 9001 section 4), each with its own keys. Initial, Handshake and 1-RTT packets also have their own packet number spaces; 0-RTT shares 1-RTT's.
  • Enum Constant Details

    • INITIAL

      public static final EncryptionLevel INITIAL
      Keys derived from the client's first Destination Connection ID.
    • ZERO_RTT

      public static final EncryptionLevel ZERO_RTT
      Early data keys, from a resumed session.
    • HANDSHAKE

      public static final EncryptionLevel HANDSHAKE
      Keys from the TLS handshake secrets.
    • ONE_RTT

      public static final EncryptionLevel ONE_RTT
      Keys from the TLS application traffic secrets.
  • Method Details

    • values

      public static EncryptionLevel[] 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

      public static EncryptionLevel valueOf(String name)
      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 name
      NullPointerException - if the argument is null