| Modifier and Type | Field and Description |
|---|---|
| private static final HexFormat | |
| private static final String | |
| pack-priv static final String | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static List | Returns: a list ofSNIServerNamePuts |
| pack-priv static String | |
| pack-priv static <T> boolean | |
| pack-priv static boolean | getBooleanProperty(String propName, boolean defaultValue)
Return the value of the boolean System property propName. |
| pack-priv static String | |
| pack-priv static String | |
| private static SNIHostName | Returns: an instance ofSNIHostName, or null if the hostname does
not look like a FQDNthe raw hostname hostname)Converts string hostname to |
| pack-priv static void | |
| private static void | |
| pack-priv static byte[] | toByteArray(BigInteger bi)
Utility method to convert a BigInteger to a byte array in unsigned format as needed in the handshake messages. |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static String |
| HEX_FORMATTER | back to summary |
|---|---|
| private static final HexFormat HEX_FORMATTER | |
| indent | back to summary |
|---|---|
| private static final String indent | |
| LINE_SEP | back to summary |
|---|---|
| pack-priv static final String LINE_SEP | |
| lineBreakPatern | back to summary |
|---|---|
| private static final Pattern lineBreakPatern | |
| Utilities | back to summary |
|---|---|
| pack-priv Utilities() | |
| addToSNIServerNameList | back to summary |
|---|---|
| pack-priv static List Puts
If the Note that the returned list does not allow duplicated name type.
| |
| byte16HexString | back to summary |
|---|---|
| pack-priv static String byte16HexString(int id) | |
| contains | back to summary |
|---|---|
| pack-priv static <T> boolean contains(T[] array, T item) | |
| getBooleanProperty | back to summary |
|---|---|
| pack-priv static boolean getBooleanProperty(String propName, boolean defaultValue) Return the value of the boolean System property propName. | |
| indent | back to summary |
|---|---|
| pack-priv static String indent(String source) | |
| indent | back to summary |
|---|---|
| pack-priv static String indent(String source, String prefix) | |
| rawToSNIHostName | back to summary |
|---|---|
| private static SNIHostName rawToSNIHostName(String hostname) Converts string hostname to Note that to check whether a hostname is a valid domain name, we cannot use the hostname resolved from name services. For virtual hosting, multiple hostnames may be bound to the same IP address, so the hostname resolved from name services is not always reliable.
| |
| reverseBytes | back to summary |
|---|---|
| pack-priv static void reverseBytes(byte[] arr) | |
| swap | back to summary |
|---|---|
| private static void swap(byte[] arr, int i, int j) | |
| toByteArray | back to summary |
|---|---|
| pack-priv static byte[] toByteArray(BigInteger bi) Utility method to convert a BigInteger to a byte array in unsigned format as needed in the handshake messages. BigInteger uses 2's complement format, i.e. it prepends an extra zero if the MSB is set. We remove that. | |
| toHexString | back to summary |
|---|---|
| pack-priv static String toHexString(byte[] bytes) | |
| toHexString | back to summary |
|---|---|
| pack-priv static String toHexString(long lv) | |
| wrapText | back to summary |
|---|---|
| pack-priv static String wrapText(String text, int maxWidth) | |