| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String[] | |
| pack-priv static final String[] | |
| pack-priv static final short | |
| pack-priv static final short | |
| pack-priv static final short | |
| pack-priv static final short | |
| pack-priv static final int | GMSSL_PROTOCOL_VERSION
GMSSL Protocol Version |
| pack-priv static final String | |
| private static final InternalLogger | |
| pack-priv static final int | NOT_ENCRYPTED
data is not encrypted |
| pack-priv static final int | NOT_ENOUGH_DATA
Not enough data in buffer to parse the record length |
| pack-priv static final int | |
| pack-priv static final int | SSL_CONTENT_TYPE_APPLICATION_DATA
application data |
| pack-priv static final int | SSL_CONTENT_TYPE_CHANGE_CIPHER_SPEC
change cipher spec |
| pack-priv static final int | SSL_CONTENT_TYPE_EXTENSION_HEARTBEAT
HeartBeat Extension |
| pack-priv static final int | SSL_CONTENT_TYPE_HANDSHAKE
handshake |
| pack-priv static final int | SSL_RECORD_HEADER_LENGTH
the length of the ssl record header (in bytes) |
| pack-priv static final String[] | |
| pack-priv static final Set | |
| private static final boolean | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv static boolean | |
| pack-priv static int | Returns: length The length of the encrypted packet that is included in the buffer orSslUtils#NOT_ENOUGH_DATA if not enough data is present in the
ByteBuf. This will return SslUtils#NOT_ENCRYPTED if
the given ByteBuf is not encrypted at all.The buffer, int offset)ByteBuf to read from.Return how much bytes can be read out of the encrypted data. |
| pack-priv static int | |
| private static int | |
| pack-priv static SSLContext | |
| private static String | |
| pack-priv static void | |
| pack-priv static boolean | isTLSv13Cipher(String cipher)
Returns |
| pack-priv static boolean | isTLSv13EnabledByJDK(Provider provider)
Returns |
| private static boolean | |
| pack-priv static boolean | isTLSv13SupportedByJDK(Provider provider)
Returns |
| private static boolean | |
| pack-priv static boolean | isValidHostNameForSNI(String hostname)
Validate that the given hostname can be used in SNI extension. |
| private static SSLContext | |
| private static short | |
| private static short | |
| pack-priv static ByteBuf | toBase64(ByteBufAllocator allocator, ByteBuf src)
Same as |
| pack-priv static SSLHandshakeException | toSSLHandshakeException(Throwable e)
Converts the given exception to a |
| private static short | |
| private static int | |
| private static int | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void |
| DEFAULT_CIPHER_SUITES | back to summary |
|---|---|
| pack-priv static final String[] DEFAULT_CIPHER_SUITES | |
| DEFAULT_TLSV13_CIPHER_SUITES | back to summary |
|---|---|
| pack-priv static final String[] DEFAULT_TLSV13_CIPHER_SUITES | |
| DTLS_1_0 | back to summary |
|---|---|
| pack-priv static final short DTLS_1_0 | |
| DTLS_1_2 | back to summary |
|---|---|
| pack-priv static final short DTLS_1_2 | |
| DTLS_1_3 | back to summary |
|---|---|
| pack-priv static final short DTLS_1_3 | |
| DTLS_RECORD_HEADER_LENGTH | back to summary |
|---|---|
| pack-priv static final short DTLS_RECORD_HEADER_LENGTH | |
| GMSSL_PROTOCOL_VERSION | back to summary |
|---|---|
| pack-priv static final int GMSSL_PROTOCOL_VERSION GMSSL Protocol Version | |
| INVALID_CIPHER | back to summary |
|---|---|
| pack-priv static final String INVALID_CIPHER | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| NOT_ENCRYPTED | back to summary |
|---|---|
| pack-priv static final int NOT_ENCRYPTED data is not encrypted | |
| NOT_ENOUGH_DATA | back to summary |
|---|---|
| pack-priv static final int NOT_ENOUGH_DATA Not enough data in buffer to parse the record length | |
| SSL_CONTENT_TYPE_ALERT | back to summary |
|---|---|
| pack-priv static final int SSL_CONTENT_TYPE_ALERT alert | |
| SSL_CONTENT_TYPE_APPLICATION_DATA | back to summary |
|---|---|
| pack-priv static final int SSL_CONTENT_TYPE_APPLICATION_DATA application data | |
| SSL_CONTENT_TYPE_CHANGE_CIPHER_SPEC | back to summary |
|---|---|
| pack-priv static final int SSL_CONTENT_TYPE_CHANGE_CIPHER_SPEC change cipher spec | |
| SSL_CONTENT_TYPE_EXTENSION_HEARTBEAT | back to summary |
|---|---|
| pack-priv static final int SSL_CONTENT_TYPE_EXTENSION_HEARTBEAT HeartBeat Extension | |
| SSL_CONTENT_TYPE_HANDSHAKE | back to summary |
|---|---|
| pack-priv static final int SSL_CONTENT_TYPE_HANDSHAKE handshake | |
| SSL_RECORD_HEADER_LENGTH | back to summary |
|---|---|
| pack-priv static final int SSL_RECORD_HEADER_LENGTH the length of the ssl record header (in bytes) | |
| TLSV13_CIPHER_SUITES | back to summary |
|---|---|
| pack-priv static final String[] TLSV13_CIPHER_SUITES | |
| TLSV13_CIPHERS | back to summary |
|---|---|
| pack-priv static final Set<String> TLSV13_CIPHERS | |
| TLSV1_3_JDK_DEFAULT_ENABLED | back to summary |
|---|---|
| private static final boolean TLSV1_3_JDK_DEFAULT_ENABLED | |
| TLSV1_3_JDK_SUPPORTED | back to summary |
|---|---|
| private static final boolean TLSV1_3_JDK_SUPPORTED | |
| SslUtils | back to summary |
|---|---|
| private SslUtils() | |
| addIfSupported | back to summary |
|---|---|
| pack-priv static void addIfSupported(Set<String> supported, List<String> enabled, String... names) Add elements from | |
| arrayContains | back to summary |
|---|---|
| pack-priv static boolean arrayContains(String[] array, String value) | |
| getEncryptedPacketLength | back to summary |
|---|---|
| pack-priv static int getEncryptedPacketLength(ByteBuf buffer, int offset) Return how much bytes can be read out of the encrypted data. Be aware that this method will not increase
the readerIndex of the given
| |
| getEncryptedPacketLength | back to summary |
|---|---|
| pack-priv static int getEncryptedPacketLength(ByteBuffer[] buffers, int offset) | |
| getEncryptedPacketLength | back to summary |
|---|---|
| private static int getEncryptedPacketLength(ByteBuffer buffer) | |
| getSSLContext | back to summary |
|---|---|
| pack-priv static SSLContext getSSLContext(String provider) throws NoSuchAlgorithmException, KeyManagementException, NoSuchProviderException | |
| getTlsVersion | back to summary |
|---|---|
| private static String getTlsVersion() | |
| handleHandshakeFailure | back to summary |
|---|---|
| pack-priv static void handleHandshakeFailure(ChannelHandlerContext ctx, Throwable cause, boolean notify) | |
| isTLSv13Cipher | back to summary |
|---|---|
| pack-priv static boolean isTLSv13Cipher(String cipher) Returns | |
| isTLSv13EnabledByJDK | back to summary |
|---|---|
| pack-priv static boolean isTLSv13EnabledByJDK(Provider provider) Returns | |
| isTLSv13EnabledByJDK0 | back to summary |
|---|---|
| private static boolean isTLSv13EnabledByJDK0(Provider provider) | |
| isTLSv13SupportedByJDK | back to summary |
|---|---|
| pack-priv static boolean isTLSv13SupportedByJDK(Provider provider) Returns | |
| isTLSv13SupportedByJDK0 | back to summary |
|---|---|
| private static boolean isTLSv13SupportedByJDK0(Provider provider) | |
| isValidHostNameForSNI | back to summary |
|---|---|
| pack-priv static boolean isValidHostNameForSNI(String hostname) Validate that the given hostname can be used in SNI extension. | |
| newInitContext | back to summary |
|---|---|
| private static SSLContext newInitContext(Provider provider) throws NoSuchAlgorithmException, KeyManagementException | |
| shortBE | back to summary |
|---|---|
private static short shortBE(ByteBuf buffer, int offset)
| |
| shortBE | back to summary |
|---|---|
| private static short shortBE(ByteBuffer buffer, int offset) | |
| toBase64 | back to summary |
|---|---|
| pack-priv static ByteBuf toBase64(ByteBufAllocator allocator, ByteBuf src) Same as
| |
| toSSLHandshakeException | back to summary |
|---|---|
| pack-priv static SSLHandshakeException toSSLHandshakeException(Throwable e) Converts the given exception to a | |
| unsignedByte | back to summary |
|---|---|
| private static short unsignedByte(byte b) | |
| unsignedShortBE | back to summary |
|---|---|
private static int unsignedShortBE(ByteBuf buffer, int offset)
| |
| unsignedShortBE | back to summary |
|---|---|
| private static int unsignedShortBE(ByteBuffer buffer, int offset) | |
| useFallbackCiphersIfDefaultIsEmpty | back to summary |
|---|---|
| pack-priv static void useFallbackCiphersIfDefaultIsEmpty(List<String> defaultCiphers, Iterable<String> fallbackCiphers) | |
| useFallbackCiphersIfDefaultIsEmpty | back to summary |
|---|---|
| pack-priv static void useFallbackCiphersIfDefaultIsEmpty(List<String> defaultCiphers, String... fallbackCiphers) | |
| zeroout | back to summary |
|---|---|
| pack-priv static void zeroout(ByteBuf buffer) Fills the | |
| zerooutAndRelease | back to summary |
|---|---|
| pack-priv static void zerooutAndRelease(ByteBuf buffer) Fills the | |