testSSLEngineUnwrapNoSslRecord() — netty Function Reference
Architecture documentation for the testSSLEngineUnwrapNoSslRecord() function in SSLEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 47aea7a1_6627_5731_e86b_000f29308435["testSSLEngineUnwrapNoSslRecord()"] 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b["SSLEngineTest"] 47aea7a1_6627_5731_e86b_000f29308435 -->|defined in| 9150c92a_2afc_b83a_c3bf_86dfac6e9d9b bf19737b_7dc7_9dfd_0a67_ae31448ebbe8["protocols()"] 47aea7a1_6627_5731_e86b_000f29308435 -->|calls| bf19737b_7dc7_9dfd_0a67_ae31448ebbe8 e3b541e6_b593_4b1f_a637_da19020e73df["ciphers()"] 47aea7a1_6627_5731_e86b_000f29308435 -->|calls| e3b541e6_b593_4b1f_a637_da19020e73df 87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d["cleanupClientSslEngine()"] 47aea7a1_6627_5731_e86b_000f29308435 -->|calls| 87e8e20d_ffbe_f5c3_4fd0_7d8ac419206d style 47aea7a1_6627_5731_e86b_000f29308435 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 2381–2411
@MethodSource("newTestParams")
@ParameterizedTest
public void testSSLEngineUnwrapNoSslRecord(SSLEngineTestParam param) throws Exception {
clientSslCtx = wrapContext(param, SslContextBuilder
.forClient()
.sslContextProvider(clientSslContextProvider())
.sslProvider(sslClientProvider())
.protocols(param.protocols())
.ciphers(param.ciphers())
.build());
final SSLEngine client = wrapEngine(clientSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
try {
final ByteBuffer src = allocateBuffer(param.type(), client.getSession().getApplicationBufferSize());
final ByteBuffer dst = allocateBuffer(param.type(), client.getSession().getPacketBufferSize());
ByteBuffer empty = allocateBuffer(param.type(), 0);
SSLEngineResult clientResult = client.wrap(empty, dst);
assertEquals(SSLEngineResult.Status.OK, clientResult.getStatus());
assertEquals(SSLEngineResult.HandshakeStatus.NEED_UNWRAP, clientResult.getHandshakeStatus());
assertThrows(SSLException.class, new Executable() {
@Override
public void execute() throws Throwable {
client.unwrap(src, dst);
}
});
} finally {
cleanupClientSslEngine(client);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSSLEngineUnwrapNoSslRecord() do?
testSSLEngineUnwrapNoSslRecord() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is testSSLEngineUnwrapNoSslRecord() defined?
testSSLEngineUnwrapNoSslRecord() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 2381.
What does testSSLEngineUnwrapNoSslRecord() call?
testSSLEngineUnwrapNoSslRecord() calls 3 function(s): ciphers, cleanupClientSslEngine, protocols.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free