Home / Class/ Http2SecurityUtilTest Class — netty Architecture

Http2SecurityUtilTest Class — netty Architecture

Architecture documentation for the Http2SecurityUtilTest class in Http2SecurityUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  14354f1c_1b79_236a_a547_8db362683652["Http2SecurityUtilTest"]
  fb1d19d4_bf86_5418_d042_595693b82606["Http2SecurityUtilTest.java"]
  14354f1c_1b79_236a_a547_8db362683652 -->|defined in| fb1d19d4_bf86_5418_d042_595693b82606
  f8ac8a6e_b155_da67_911e_584512228027["testTLSv13CiphersIncluded()"]
  14354f1c_1b79_236a_a547_8db362683652 -->|method| f8ac8a6e_b155_da67_911e_584512228027
  37cef0a7_1d7b_7d60_da93_05c5faef2efe["testTLSv12CiphersIncluded()"]
  14354f1c_1b79_236a_a547_8db362683652 -->|method| 37cef0a7_1d7b_7d60_da93_05c5faef2efe
  6a4da71a_0ee7_65df_4fd7_78abd4efb9c0["testCiphersIncluded()"]
  14354f1c_1b79_236a_a547_8db362683652 -->|method| 6a4da71a_0ee7_65df_4fd7_78abd4efb9c0

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2SecurityUtilTest.java lines 30–49

public class Http2SecurityUtilTest {

    @Test
    public void testTLSv13CiphersIncluded() throws SSLException {
        Assumptions.assumeTrue(SslProvider.isTlsv13Supported(SslProvider.JDK));
        testCiphersIncluded("TLSv1.3");
    }

    @Test
    public void testTLSv12CiphersIncluded() throws SSLException  {
        testCiphersIncluded("TLSv1.2");
    }

    private static void testCiphersIncluded(String protocol) throws SSLException  {
        SslContext context = SslContextBuilder.forClient().sslProvider(SslProvider.JDK).protocols(protocol)
                .ciphers(Http2SecurityUtil.CIPHERS, SupportedCipherSuiteFilter.INSTANCE).build();
        SSLEngine engine = context.newEngine(UnpooledByteBufAllocator.DEFAULT);
        Assertions.assertTrue(engine.getEnabledCipherSuites().length > 0, "No " + protocol + " ciphers found");
    }
}

Frequently Asked Questions

What is the Http2SecurityUtilTest class?
Http2SecurityUtilTest is a class in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2SecurityUtilTest.java.
Where is Http2SecurityUtilTest defined?
Http2SecurityUtilTest is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2SecurityUtilTest.java at line 30.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free