Home / Class/ ConscryptOpenSslEngineInteropTest Class — netty Architecture

ConscryptOpenSslEngineInteropTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  5f450024_20a6_12ea_30ff_f932eae13d0e["ConscryptOpenSslEngineInteropTest"]
  53696936_9798_ef17_02a4_2158dcbf8869["ConscryptOpenSslEngineInteropTest.java"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|defined in| 53696936_9798_ef17_02a4_2158dcbf8869
  dd087140_6137_001e_cd9d_5c63dc650db9["newTestParams()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| dd087140_6137_001e_cd9d_5c63dc650db9
  c4692c94_a035_62b7_228a_a61349ca0f8f["checkOpenssl()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| c4692c94_a035_62b7_228a_a61349ca0f8f
  b786de00_d0d0_9171_e749_2994fb0eafbf["SslProvider()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| b786de00_d0d0_9171_e749_2994fb0eafbf
  d0cebc27_1bb9_cd99_6a80_0ca6ab0ac349["Provider()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| d0cebc27_1bb9_cd99_6a80_0ca6ab0ac349
  5d5dcfd9_1796_7997_ff1b_8bc5bdde337d["testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| 5d5dcfd9_1796_7997_ff1b_8bc5bdde337d
  7ebde145_cf81_7dd1_95dd_e136f7196472["testMutualAuthValidClientCertChainTooLongFailRequireClientAuth()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| 7ebde145_cf81_7dd1_95dd_e136f7196472
  4e64a0fa_148b_4ca8_5c18_43cd44e1b557["mySetupMutualAuthServerIsValidClientException()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| 4e64a0fa_148b_4ca8_5c18_43cd44e1b557
  5458a2e7_6189_7804_3c8c_40e038d886b7["testMutualAuthInvalidIntermediateCASucceedWithOptionalClientAuth()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| 5458a2e7_6189_7804_3c8c_40e038d886b7
  179f4923_4d8b_131b_004f_4315a356e65a["testMutualAuthInvalidIntermediateCAFailWithOptionalClientAuth()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| 179f4923_4d8b_131b_004f_4315a356e65a
  d79de4d1_1d6a_96ed_3aa1_6940fc705e5a["testMutualAuthInvalidIntermediateCAFailWithRequiredClientAuth()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| d79de4d1_1d6a_96ed_3aa1_6940fc705e5a
  182249aa_b981_01cf_28ce_855aca2e2a8e["testSessionAfterHandshakeKeyManagerFactory()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| 182249aa_b981_01cf_28ce_855aca2e2a8e
  91ca13a3_28f3_96ce_a7b3_4938ec53d65d["testSessionAfterHandshakeKeyManagerFactoryMutualAuth()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| 91ca13a3_28f3_96ce_a7b3_4938ec53d65d
  f664b3ec_23c4_4174_3bbb_34158d167aa3["testSupportedSignatureAlgorithms()"]
  5f450024_20a6_12ea_30ff_f932eae13d0e -->|method| f664b3ec_23c4_4174_3bbb_34158d167aa3

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/ConscryptOpenSslEngineInteropTest.java lines 36–239

@DisabledIf("checkConscryptDisabled")
public class ConscryptOpenSslEngineInteropTest extends ConscryptSslEngineTest {

    @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();
    }

    @Override
    protected SslProvider sslClientProvider() {
        return SslProvider.JDK;
    }

    @Override
    protected SslProvider sslServerProvider() {
        return SslProvider.OPENSSL;
    }

    @Override
    protected Provider serverSslContextProvider() {
        return null;
    }

    @MethodSource("newTestParams")
    @ParameterizedTest
    @Disabled("TODO: Make this work with Conscrypt")
    @Override
    public void testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth(SSLEngineTestParam param) {
        super.testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth(param);
    }

    @MethodSource("newTestParams")
    @ParameterizedTest
    @Disabled("TODO: Make this work with Conscrypt")
    @Override
    public void testMutualAuthValidClientCertChainTooLongFailRequireClientAuth(SSLEngineTestParam param) {
        super.testMutualAuthValidClientCertChainTooLongFailRequireClientAuth(param);
    }

    @Override
    protected boolean mySetupMutualAuthServerIsValidClientException(Throwable cause) {
        // TODO(scott): work around for a JDK issue. The exception should be SSLHandshakeException.
        return super.mySetupMutualAuthServerIsValidClientException(cause) || causedBySSLException(cause);
    }

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

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

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

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free