SslContext() — netty Function Reference
Architecture documentation for the SslContext() function in Http2Server.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD da2bfb93_b425_f186_fd97_8acade8487b0["SslContext()"] a7fb0a0d_b65a_50b5_e087_0c2acc22c234["Http2Server"] da2bfb93_b425_f186_fd97_8acade8487b0 -->|defined in| a7fb0a0d_b65a_50b5_e087_0c2acc22c234 style da2bfb93_b425_f186_fd97_8acade8487b0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/tiles/Http2Server.java lines 69–86
private static SslContext configureTLS() throws Exception {
X509Bundle ssc = new CertificateBuilder()
.subject("cn=localhost")
.setIsCertificateAuthority(true)
.buildSelfSigned();
ApplicationProtocolConfig apn = new ApplicationProtocolConfig(
Protocol.ALPN,
// NO_ADVERTISE is currently the only mode supported by both OpenSsl and JDK providers.
SelectorFailureBehavior.NO_ADVERTISE,
// ACCEPT is currently the only mode supported by both OpenSsl and JDK providers.
SelectedListenerFailureBehavior.ACCEPT,
ApplicationProtocolNames.HTTP_2,
ApplicationProtocolNames.HTTP_1_1);
return SslContextBuilder.forServer(ssc.toKeyManagerFactory())
.ciphers(CIPHERS, SupportedCipherSuiteFilter.INSTANCE)
.applicationProtocolConfig(apn).build();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does SslContext() do?
SslContext() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/tiles/Http2Server.java.
Where is SslContext() defined?
SslContext() is defined in example/src/main/java/io/netty/example/http2/tiles/Http2Server.java at line 69.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free