Home / Function/ testServerOcspNotEnabled() — netty Function Reference

testServerOcspNotEnabled() — netty Function Reference

Architecture documentation for the testServerOcspNotEnabled() function in OcspTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c1fb0ef0_ebf2_4f75_7ed5_a24288a2d184["testServerOcspNotEnabled()"]
  9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"]
  c1fb0ef0_ebf2_4f75_7ed5_a24288a2d184 -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5
  855460fa_b5f3_5518_11c0_27825478bfa5["testServerOcspNotEnabledOpenSsl()"]
  855460fa_b5f3_5518_11c0_27825478bfa5 -->|calls| c1fb0ef0_ebf2_4f75_7ed5_a24288a2d184
  c89e6e33_a121_6683_709b_a90a2c7d9224["testServerOcspNotEnabledOpenSslRefCnt()"]
  c89e6e33_a121_6683_709b_a90a2c7d9224 -->|calls| c1fb0ef0_ebf2_4f75_7ed5_a24288a2d184
  style c1fb0ef0_ebf2_4f75_7ed5_a24288a2d184 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 149–169

    private static void testServerOcspNotEnabled(SslProvider sslProvider) throws Exception {
        SslContext context = SslContextBuilder.forServer(ssc.getKeyPair().getPrivate(), ssc.getCertificatePath())
                .sslProvider(sslProvider)
                .build();
        try {
            SslHandler sslHandler = context.newHandler(ByteBufAllocator.DEFAULT);
            final ReferenceCountedOpenSslEngine engine = (ReferenceCountedOpenSslEngine) sslHandler.engine();
            try {
                assertThrows(IllegalStateException.class, new Executable() {
                    @Override
                    public void execute() {
                        engine.setOcspResponse(new byte[] { 1, 2, 3 });
                    }
                });
            } finally {
                engine.release();
            }
        } finally {
            ReferenceCountUtil.release(context);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testServerOcspNotEnabled() do?
testServerOcspNotEnabled() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is testServerOcspNotEnabled() defined?
testServerOcspNotEnabled() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 149.
What calls testServerOcspNotEnabled()?
testServerOcspNotEnabled() is called by 2 function(s): testServerOcspNotEnabledOpenSsl, testServerOcspNotEnabledOpenSslRefCnt.

Analyze Your Own Codebase

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

Try Supermodel Free