handshake() — netty Function Reference
Architecture documentation for the handshake() function in OcspTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3821d9ad_f922_8022_9adf_f69ae9d2fdb0["handshake()"] 9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"] 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5 f648b1b1_b504_81ab_4fe2_d1897cf72a47["testClientAcceptingOcspStaple()"] f648b1b1_b504_81ab_4fe2_d1897cf72a47 -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 6e011f44_4989_e622_a5fc_8c3efad9d1a0["testClientRejectingOcspStaple()"] 6e011f44_4989_e622_a5fc_8c3efad9d1a0 -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 abfa4224_960e_64cc_b59b_b22c04bd5d9c["testServerHasNoStaple()"] abfa4224_960e_64cc_b59b_b22c04bd5d9c -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 714b3c4f_a755_070f_4ff9_a71450389f6d["testClientException()"] 714b3c4f_a755_070f_4ff9_a71450389f6d -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 style 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 357–394
private static void handshake(SslProvider sslProvider, CountDownLatch latch, ChannelHandler serverHandler,
byte[] response, ChannelHandler clientHandler, OcspClientCallback callback) throws Exception {
SslContext serverSslContext = SslContextBuilder.forServer(ssc.getKeyPair().getPrivate(),
ssc.getCertificatePath())
.sslProvider(sslProvider)
.enableOcsp(true)
.build();
try {
SslContext clientSslContext = SslContextBuilder.forClient()
.sslProvider(sslProvider)
.enableOcsp(true)
.trustManager(InsecureTrustManagerFactory.INSTANCE)
.build();
try {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
try {
LocalAddress address = new LocalAddress("handshake-" + Math.random());
Channel server = newServer(group, address, serverSslContext, response, serverHandler);
Channel client = newClient(group, address, clientSslContext, callback, clientHandler);
try {
assertTrue(latch.await(10L, TimeUnit.SECONDS));
} finally {
client.close().syncUninterruptibly();
server.close().syncUninterruptibly();
}
} finally {
group.shutdownGracefully(1L, 1L, TimeUnit.SECONDS);
}
} finally {
ReferenceCountUtil.release(clientSslContext);
}
} finally {
ReferenceCountUtil.release(serverSslContext);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handshake() do?
handshake() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is handshake() defined?
handshake() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 357.
What calls handshake()?
handshake() is called by 4 function(s): testClientAcceptingOcspStaple, testClientException, testClientRejectingOcspStaple, testServerHasNoStaple.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free