Enum Class SpaceId
- All Implemented Interfaces:
Serializable,Comparable<SpaceId>,Constable
The three packet number spaces (RFC 9000 section 12.3). They are ordered: Initial, then
Handshake, then application data.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SpaceIdof(EncryptionLevel level) The space of an encryption level.static SpaceIdReturns the enum constant of this class with the specified name.static SpaceId[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
Initial packets. -
HANDSHAKE
Handshake packets. -
DATA
0-RTT and 1-RTT packets, which share a space.
-
-
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
-
of
The space of an encryption level.- Parameters:
level- the level- Returns:
DATAfor 0-RTT and 1-RTT
-