Home / Class/ TestClientOcspContext Class — netty Architecture

TestClientOcspContext Class — netty Architecture

Architecture documentation for the TestClientOcspContext class in OcspTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ed40461f_77ff_d1a6_953f_c95262a7f51b["TestClientOcspContext"]
  91098973_d7a2_6ec0_4e05_bfaa7ca5bcf6["OcspTest.java"]
  ed40461f_77ff_d1a6_953f_c95262a7f51b -->|defined in| 91098973_d7a2_6ec0_4e05_bfaa7ca5bcf6
  6204fe7b_d6db_03b5_bd30_29a19feb3fea["TestClientOcspContext()"]
  ed40461f_77ff_d1a6_953f_c95262a7f51b -->|method| 6204fe7b_d6db_03b5_bd30_29a19feb3fea
  2e9c932f_406b_6341_23d9_721ad7c63231["response()"]
  ed40461f_77ff_d1a6_953f_c95262a7f51b -->|method| 2e9c932f_406b_6341_23d9_721ad7c63231
  dc296417_deb8_29c6_8096_10ec88323c40["verify()"]
  ed40461f_77ff_d1a6_953f_c95262a7f51b -->|method| dc296417_deb8_29c6_8096_10ec88323c40

Relationship Graph

Source Code

handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 479–502

    private static final class TestClientOcspContext implements OcspClientCallback {

        private final CountDownLatch latch = new CountDownLatch(1);
        private final boolean valid;

        private volatile byte[] response;

        TestClientOcspContext(boolean valid) {
            this.valid = valid;
        }

        public byte[] response() throws InterruptedException, TimeoutException {
            assertTrue(latch.await(10L, TimeUnit.SECONDS));
            return response;
        }

        @Override
        public boolean verify(byte[] response) throws Exception {
            this.response = response;
            latch.countDown();

            return valid;
        }
    }

Frequently Asked Questions

What is the TestClientOcspContext class?
TestClientOcspContext is a class in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is TestClientOcspContext defined?
TestClientOcspContext is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 479.

Analyze Your Own Codebase

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

Try Supermodel Free