testClientAcceptingOcspStaple() — netty Function Reference
Architecture documentation for the testClientAcceptingOcspStaple() function in OcspTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f648b1b1_b504_81ab_4fe2_d1897cf72a47["testClientAcceptingOcspStaple()"] 9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"] f648b1b1_b504_81ab_4fe2_d1897cf72a47 -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5 4d2d3911_1617_ab28_014c_c281ba34a319["testClientAcceptingOcspStapleOpenSsl()"] 4d2d3911_1617_ab28_014c_c281ba34a319 -->|calls| f648b1b1_b504_81ab_4fe2_d1897cf72a47 43a1e9da_6efe_a63f_e1bf_bf491f1ed14c["testClientAcceptingOcspStapleOpenSslRefCnt()"] 43a1e9da_6efe_a63f_e1bf_bf491f1ed14c -->|calls| f648b1b1_b504_81ab_4fe2_d1897cf72a47 ec5b0645_61b1_2812_2da8_e1470f0d7d58["newOcspResponse()"] f648b1b1_b504_81ab_4fe2_d1897cf72a47 -->|calls| ec5b0645_61b1_2812_2da8_e1470f0d7d58 6204fe7b_d6db_03b5_bd30_29a19feb3fea["TestClientOcspContext()"] f648b1b1_b504_81ab_4fe2_d1897cf72a47 -->|calls| 6204fe7b_d6db_03b5_bd30_29a19feb3fea 3821d9ad_f922_8022_9adf_f69ae9d2fdb0["handshake()"] f648b1b1_b504_81ab_4fe2_d1897cf72a47 -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 2e9c932f_406b_6341_23d9_721ad7c63231["response()"] f648b1b1_b504_81ab_4fe2_d1897cf72a47 -->|calls| 2e9c932f_406b_6341_23d9_721ad7c63231 style f648b1b1_b504_81ab_4fe2_d1897cf72a47 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 186–217
private static void testClientAcceptingOcspStaple(SslProvider sslProvider) throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
ChannelInboundHandlerAdapter serverHandler = new ChannelInboundHandlerAdapter() {
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
ctx.writeAndFlush(Unpooled.wrappedBuffer("Hello, World!".getBytes()));
ctx.fireChannelActive();
}
};
ChannelInboundHandlerAdapter clientHandler = new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
try {
ReferenceCountUtil.release(msg);
} finally {
latch.countDown();
}
}
};
byte[] response = newOcspResponse();
TestClientOcspContext callback = new TestClientOcspContext(true);
handshake(sslProvider, latch, serverHandler, response, clientHandler, callback);
byte[] actual = callback.response();
assertNotNull(actual);
assertNotSame(response, actual);
assertArrayEquals(response, actual);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testClientAcceptingOcspStaple() do?
testClientAcceptingOcspStaple() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is testClientAcceptingOcspStaple() defined?
testClientAcceptingOcspStaple() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 186.
What does testClientAcceptingOcspStaple() call?
testClientAcceptingOcspStaple() calls 4 function(s): TestClientOcspContext, handshake, newOcspResponse, response.
What calls testClientAcceptingOcspStaple()?
testClientAcceptingOcspStaple() is called by 2 function(s): testClientAcceptingOcspStapleOpenSsl, testClientAcceptingOcspStapleOpenSslRefCnt.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free