testClientRejectingOcspStaple() — netty Function Reference
Architecture documentation for the testClientRejectingOcspStaple() function in OcspTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6e011f44_4989_e622_a5fc_8c3efad9d1a0["testClientRejectingOcspStaple()"] 9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"] 6e011f44_4989_e622_a5fc_8c3efad9d1a0 -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5 7b6ff83b_5669_b767_7431_a3df12f56fe1["testClientRejectingOcspStapleOpenSsl()"] 7b6ff83b_5669_b767_7431_a3df12f56fe1 -->|calls| 6e011f44_4989_e622_a5fc_8c3efad9d1a0 999d9b9c_588a_d098_010e_f7349f877a3d["testClientRejectingOcspStapleOpenSslRefCnt()"] 999d9b9c_588a_d098_010e_f7349f877a3d -->|calls| 6e011f44_4989_e622_a5fc_8c3efad9d1a0 ec5b0645_61b1_2812_2da8_e1470f0d7d58["newOcspResponse()"] 6e011f44_4989_e622_a5fc_8c3efad9d1a0 -->|calls| ec5b0645_61b1_2812_2da8_e1470f0d7d58 6204fe7b_d6db_03b5_bd30_29a19feb3fea["TestClientOcspContext()"] 6e011f44_4989_e622_a5fc_8c3efad9d1a0 -->|calls| 6204fe7b_d6db_03b5_bd30_29a19feb3fea 3821d9ad_f922_8022_9adf_f69ae9d2fdb0["handshake()"] 6e011f44_4989_e622_a5fc_8c3efad9d1a0 -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 2e9c932f_406b_6341_23d9_721ad7c63231["response()"] 6e011f44_4989_e622_a5fc_8c3efad9d1a0 -->|calls| 2e9c932f_406b_6341_23d9_721ad7c63231 style 6e011f44_4989_e622_a5fc_8c3efad9d1a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 234–262
private static void testClientRejectingOcspStaple(SslProvider sslProvider) throws Exception {
final AtomicReference<Throwable> causeRef = new AtomicReference<Throwable>();
final CountDownLatch latch = new CountDownLatch(1);
ChannelInboundHandlerAdapter clientHandler = new ChannelInboundHandlerAdapter() {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
try {
causeRef.set(cause);
} finally {
latch.countDown();
}
}
};
byte[] response = newOcspResponse();
TestClientOcspContext callback = new TestClientOcspContext(false);
handshake(sslProvider, latch, null, response, clientHandler, callback);
byte[] actual = callback.response();
assertNotNull(actual);
assertNotSame(response, actual);
assertArrayEquals(response, actual);
Throwable cause = causeRef.get();
assertInstanceOf(SSLHandshakeException.class, cause);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testClientRejectingOcspStaple() do?
testClientRejectingOcspStaple() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is testClientRejectingOcspStaple() defined?
testClientRejectingOcspStaple() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 234.
What does testClientRejectingOcspStaple() call?
testClientRejectingOcspStaple() calls 4 function(s): TestClientOcspContext, handshake, newOcspResponse, response.
What calls testClientRejectingOcspStaple()?
testClientRejectingOcspStaple() is called by 2 function(s): testClientRejectingOcspStapleOpenSsl, testClientRejectingOcspStapleOpenSslRefCnt.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free