Top Inners Fields Constructors Methods
io.netty.handler.codec.http2

pack-priv final Class HpackUtil

extends Object
Class Inheritance
Imports
io.netty.util.AsciiString, io.netty.util.internal.ConstantTimeUtils, .PlatformDependent

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
pack-priv static final byte[]
pack-priv static final int[]
pack-priv static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static int

Returns:

0 if not equal. 1 if equal.
equalsConstantTime
(CharSequence
the first value.
s1
,
CharSequence
the second value.
s2
)

Compare two CharSequence objects without leaking timing information.

pack-priv static boolean

Returns:

false if not equal. true if equal.
equalsVariableTime
(CharSequence
the first value.
s1
,
CharSequence
the second value.
s2
)

Compare two CharSequences.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HUFFMAN_CODE_LENGTHSback to summary
pack-priv static final byte[] HUFFMAN_CODE_LENGTHS
HUFFMAN_CODESback to summary
pack-priv static final int[] HUFFMAN_CODES
HUFFMAN_EOSback to summary
pack-priv static final int HUFFMAN_EOS

Constructor Detail

HpackUtilback to summary
private HpackUtil()

Method Detail

equalsConstantTimeback to summary
pack-priv static int equalsConstantTime(CharSequence s1, CharSequence s2)

Compare two CharSequence objects without leaking timing information.

The int return type is intentional and is designed to allow cascading of constant time operations:

    String s1 = "foo";
    String s2 = "foo";
    String s3 = "foo";
    String s4 = "goo";
    boolean equals = (equalsConstantTime(s1, s2) & equalsConstantTime(s3, s4)) != 0;
Parameters
s1:CharSequence

the first value.

s2:CharSequence

the second value.

Returns:int

0 if not equal. 1 if equal.

equalsVariableTimeback to summary
pack-priv static boolean equalsVariableTime(CharSequence s1, CharSequence s2)

Compare two CharSequences.

Parameters
s1:CharSequence

the first value.

s2:CharSequence

the second value.

Returns:boolean

false if not equal. true if equal.

io.netty.handler.codec.http2 back to summary

pack-priv final Enum HpackUtil.IndexType

extends Enum<HpackUtil.IndexType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final HpackUtil.IndexType
public static final HpackUtil.IndexType
public static final HpackUtil.IndexType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static HpackUtil.IndexType
public static HpackUtil.IndexType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INCREMENTALback to summary
public static final HpackUtil.IndexType INCREMENTAL
NEVERback to summary
public static final HpackUtil.IndexType NEVER
NONEback to summary
public static final HpackUtil.IndexType NONE

Constructor Detail

IndexTypeback to summary
private IndexType()

Method Detail

valueOfback to summary
public static HpackUtil.IndexType valueOf(String name)
valuesback to summary
public static HpackUtil.IndexType[] values()