Home / Function/ testValidHostNameForSni() — netty Function Reference

testValidHostNameForSni() — netty Function Reference

Architecture documentation for the testValidHostNameForSni() function in SslUtilsTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  75d9b8b2_d039_0a3b_a35e_fc6aee365c17["testValidHostNameForSni()"]
  48820ee9_de8c_874d_12df_29f6fb10052e["SslUtilsTest"]
  75d9b8b2_d039_0a3b_a35e_fc6aee365c17 -->|defined in| 48820ee9_de8c_874d_12df_29f6fb10052e
  style 75d9b8b2_d039_0a3b_a35e_fc6aee365c17 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java lines 182–190

    @Test
    public void testValidHostNameForSni() {
        assertFalse(SslUtils.isValidHostNameForSNI("/test.de"), "SNI domain can't start with /");
        assertFalse(SslUtils.isValidHostNameForSNI("test.de."), "SNI domain can't end with a dot/");
        assertTrue(SslUtils.isValidHostNameForSNI("test.de"));
        // see https://datatracker.ietf.org/doc/html/rfc6066#section-3
        // it has to be test.local to qualify as SNI
        assertFalse(SslUtils.isValidHostNameForSNI("test"), "SNI has to be FQDN");
    }

Domain

Subdomains

Frequently Asked Questions

What does testValidHostNameForSni() do?
testValidHostNameForSni() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java.
Where is testValidHostNameForSni() defined?
testValidHostNameForSni() is defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java at line 182.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free