testSNIMatchersWithSNINameWithUnderscore() — netty Function Reference
Architecture documentation for the testSNIMatchersWithSNINameWithUnderscore() function in OpenSslEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c7b925e0_7755_359a_6286_e069a3bc89b3["testSNIMatchersWithSNINameWithUnderscore()"] 08957e63_66e1_e2b4_c8aa_4f617c598a7d["OpenSslEngineTest"] c7b925e0_7755_359a_6286_e069a3bc89b3 -->|defined in| 08957e63_66e1_e2b4_c8aa_4f617c598a7d style c7b925e0_7755_359a_6286_e069a3bc89b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java lines 1110–1130
@MethodSource("newTestParams")
@ParameterizedTest
public void testSNIMatchersWithSNINameWithUnderscore(SSLEngineTestParam param) throws Exception {
byte[] name = "rb8hx3pww30y3tvw0mwy.v1_1".getBytes(CharsetUtil.UTF_8);
SelfSignedCertificate ssc = CachedSelfSignedCertificate.getCachedCertificate();
serverSslCtx = wrapContext(param, SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey())
.sslProvider(sslServerProvider())
.protocols(param.protocols())
.ciphers(param.ciphers())
.build());
SSLEngine engine = wrapEngine(serverSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
try {
SSLParameters parameters = new SSLParameters();
Java8SslTestUtils.setSNIMatcher(parameters, name);
engine.setSSLParameters(parameters);
assertFalse(unwrapEngine(engine).checkSniHostnameMatch("other"));
} finally {
cleanupServerSslEngine(engine);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSNIMatchersWithSNINameWithUnderscore() do?
testSNIMatchersWithSNINameWithUnderscore() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java.
Where is testSNIMatchersWithSNINameWithUnderscore() defined?
testSNIMatchersWithSNINameWithUnderscore() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java at line 1110.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free