SSLContext() — netty Function Reference
Architecture documentation for the SSLContext() function in JdkSslClientContext.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4a132661_43b3_a397_29bd_a456f29e138e["SSLContext()"] 3bb8f314_1cad_5b8e_9a50_6b93e5f38222["JdkSslClientContext"] 4a132661_43b3_a397_29bd_a456f29e138e -->|defined in| 3bb8f314_1cad_5b8e_9a50_6b93e5f38222 01b2b2f1_01a4_9677_58e5_9df89d53f144["wrapIfNeeded()"] 4a132661_43b3_a397_29bd_a456f29e138e -->|calls| 01b2b2f1_01a4_9677_58e5_9df89d53f144 style 4a132661_43b3_a397_29bd_a456f29e138e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/JdkSslClientContext.java lines 284–320
private static SSLContext newSSLContext(Provider sslContextProvider,
X509Certificate[] trustCertCollection,
TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain,
PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory,
long sessionCacheSize, long sessionTimeout,
SecureRandom secureRandom, String keyStore,
ResumptionController resumptionController) throws SSLException {
try {
if (trustCertCollection != null) {
trustManagerFactory = buildTrustManagerFactory(trustCertCollection, trustManagerFactory, keyStore);
}
if (keyCertChain != null) {
keyManagerFactory = buildKeyManagerFactory(keyCertChain, null,
key, keyPassword, keyManagerFactory, keyStore);
}
SSLContext ctx = sslContextProvider == null ? SSLContext.getInstance(PROTOCOL)
: SSLContext.getInstance(PROTOCOL, sslContextProvider);
ctx.init(keyManagerFactory == null ? null : keyManagerFactory.getKeyManagers(),
trustManagerFactory == null ? null :
wrapIfNeeded(trustManagerFactory.getTrustManagers(), resumptionController),
secureRandom);
SSLSessionContext sessCtx = ctx.getClientSessionContext();
if (sessionCacheSize > 0) {
sessCtx.setSessionCacheSize((int) Math.min(sessionCacheSize, Integer.MAX_VALUE));
}
if (sessionTimeout > 0) {
sessCtx.setSessionTimeout((int) Math.min(sessionTimeout, Integer.MAX_VALUE));
}
return ctx;
} catch (Exception e) {
if (e instanceof SSLException) {
throw (SSLException) e;
}
throw new SSLException("failed to initialize the client-side SSL context", e);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does SSLContext() do?
SSLContext() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/JdkSslClientContext.java.
Where is SSLContext() defined?
SSLContext() is defined in handler/src/main/java/io/netty/handler/ssl/JdkSslClientContext.java at line 284.
What does SSLContext() call?
SSLContext() calls 1 function(s): wrapIfNeeded.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free