Home / Class/ OpenSslEngineTest Class — netty Architecture

OpenSslEngineTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  08957e63_66e1_e2b4_c8aa_4f617c598a7d["OpenSslEngineTest"]
  792dbd34_a6de_8e9f_cd98_66ddb8cbc942["OpenSslEngineTest.java"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|defined in| 792dbd34_a6de_8e9f_cd98_66ddb8cbc942
  07460ce6_fbc8_4951_5d67_2ce7a3aaaae8["OpenSslEngineTest()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 07460ce6_fbc8_4951_5d67_2ce7a3aaaae8
  19938dcf_dd27_1c2f_4bb3_230614f4c225["newTestParams()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 19938dcf_dd27_1c2f_4bb3_230614f4c225
  084d82ef_9077_feb6_8845_fcfc1fcb196e["checkOpenSsl()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 084d82ef_9077_feb6_8845_fcfc1fcb196e
  5a923a22_43a4_77b7_21c4_6f8c7f843fe5["tearDown()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 5a923a22_43a4_77b7_21c4_6f8c7f843fe5
  37da6c33_f2f7_a4d6_a484_48a9812f1810["testSessionAfterHandshakeKeyManagerFactory()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 37da6c33_f2f7_a4d6_a484_48a9812f1810
  9c6b43ac_f3bd_51a9_734c_74e6070efda7["testSessionAfterHandshakeKeyManagerFactoryMutualAuth()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 9c6b43ac_f3bd_51a9_734c_74e6070efda7
  93d385b7_fcdb_cf1a_58f3_527c645edccb["testMutualAuthInvalidIntermediateCASucceedWithOptionalClientAuth()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 93d385b7_fcdb_cf1a_58f3_527c645edccb
  1259ee52_be43_cdf1_9a7c_b84747c70a43["testMutualAuthInvalidIntermediateCAFailWithOptionalClientAuth()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 1259ee52_be43_cdf1_9a7c_b84747c70a43
  1d25e1ae_68f6_85a0_fafd_8c6d7883529d["testMutualAuthInvalidIntermediateCAFailWithRequiredClientAuth()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 1d25e1ae_68f6_85a0_fafd_8c6d7883529d
  240284c0_dc80_74f6_c193_fa8d49897727["testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 240284c0_dc80_74f6_c193_fa8d49897727
  fb0a29ba_44cc_64ce_7d46_b99f5ff771a4["testMutualAuthValidClientCertChainTooLongFailRequireClientAuth()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| fb0a29ba_44cc_64ce_7d46_b99f5ff771a4
  2ffa180a_70f2_c068_5ad0_8e162a86e2c2["testHandshakeSession()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 2ffa180a_70f2_c068_5ad0_8e162a86e2c2
  7235f007_d5c3_ab63_77ec_5bcfd0ef7710["testSupportedSignatureAlgorithms()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d -->|method| 7235f007_d5c3_ab63_77ec_5bcfd0ef7710

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java lines 87–1812

public class OpenSslEngineTest extends SSLEngineTest {
    private static final String PREFERRED_APPLICATION_LEVEL_PROTOCOL = "my-protocol-http2";
    private static final String FALLBACK_APPLICATION_LEVEL_PROTOCOL = "my-protocol-http1_1";

    public OpenSslEngineTest() {
        super(SslProvider.isTlsv13Supported(OPENSSL));
    }

    @Override
    protected List<SSLEngineTestParam> newTestParams() {
        List<SSLEngineTestParam> params = super.newTestParams();
        List<SSLEngineTestParam> testParams = new ArrayList<SSLEngineTestParam>();
        for (SSLEngineTestParam param: params) {
            OpenSslEngineTestParam.expandCombinations(param, testParams);
        }
        return testParams;
    }

    @BeforeAll
    public static void checkOpenSsl() {
        OpenSsl.ensureAvailability();
    }

    @AfterEach
    @Override
    public void tearDown() throws InterruptedException {
        super.tearDown();
        assertEquals(0, SSL.getLastErrorNumber(), "SSL error stack not correctly consumed");
    }

    @Override
    public void testSessionAfterHandshakeKeyManagerFactory(SSLEngineTestParam param) throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testSessionAfterHandshakeKeyManagerFactory(param);
    }

    @Override
    public void testSessionAfterHandshakeKeyManagerFactoryMutualAuth(SSLEngineTestParam param) throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testSessionAfterHandshakeKeyManagerFactoryMutualAuth(param);
    }

    @Override
    public void testMutualAuthInvalidIntermediateCASucceedWithOptionalClientAuth(SSLEngineTestParam param)
            throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testMutualAuthInvalidIntermediateCASucceedWithOptionalClientAuth(param);
    }

    @Override
    public void testMutualAuthInvalidIntermediateCAFailWithOptionalClientAuth(SSLEngineTestParam param)
            throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testMutualAuthInvalidIntermediateCAFailWithOptionalClientAuth(param);
    }

    @Override
    public void testMutualAuthInvalidIntermediateCAFailWithRequiredClientAuth(SSLEngineTestParam param)
            throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testMutualAuthInvalidIntermediateCAFailWithRequiredClientAuth(param);
    }

    @Override
    public void testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth(SSLEngineTestParam param)
            throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth(param);
    }

    @Override
    public void testMutualAuthValidClientCertChainTooLongFailRequireClientAuth(SSLEngineTestParam param)
            throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testMutualAuthValidClientCertChainTooLongFailRequireClientAuth(param);
    }

    @Override
    public void testHandshakeSession(SSLEngineTestParam param) throws Exception {
        checkShouldUseKeyManagerFactory();
        super.testHandshakeSession(param);

Frequently Asked Questions

What is the OpenSslEngineTest class?
OpenSslEngineTest is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java.
Where is OpenSslEngineTest defined?
OpenSslEngineTest is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java at line 87.

Analyze Your Own Codebase

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

Try Supermodel Free