Home / Function/ wrapTrustManagerIfNeeded() — netty Function Reference

wrapTrustManagerIfNeeded() — netty Function Reference

Architecture documentation for the wrapTrustManagerIfNeeded() function in JdkSslServerContext.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  721d1894_07ae_4ae6_a7d5_54627c557712["wrapTrustManagerIfNeeded()"]
  1676fcd7_94de_c9b5_7ee8_e94f94ffeb21["JdkSslServerContext"]
  721d1894_07ae_4ae6_a7d5_54627c557712 -->|defined in| 1676fcd7_94de_c9b5_7ee8_e94f94ffeb21
  407086cf_aa80_f2b9_7e8a_ab4da5103a62["checkIfWrappingTrustManagerIsSupported()"]
  407086cf_aa80_f2b9_7e8a_ab4da5103a62 -->|calls| 721d1894_07ae_4ae6_a7d5_54627c557712
  9b49a65c_7f5f_3927_e295_319aa12bf09d["SSLContext()"]
  9b49a65c_7f5f_3927_e295_319aa12bf09d -->|calls| 721d1894_07ae_4ae6_a7d5_54627c557712
  style 721d1894_07ae_4ae6_a7d5_54627c557712 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/JdkSslServerContext.java lines 354–370

    private static TrustManager[] wrapTrustManagerIfNeeded(
            TrustManager[] trustManagers, ResumptionController resumptionController) {
        if (WRAP_TRUST_MANAGER) {
            for (int i = 0; i < trustManagers.length; i++) {
                TrustManager tm = trustManagers[i];
                if (resumptionController != null) {
                    tm = resumptionController.wrapIfNeeded(tm);
                }
                if (tm instanceof X509ExtendedTrustManager) {
                    // Wrap the TrustManager to provide a better exception message for users to debug hostname
                    // validation failures.
                    trustManagers[i] = new EnhancingX509ExtendedTrustManager((X509ExtendedTrustManager) tm);
                }
            }
        }
        return trustManagers;
    }

Domain

Subdomains

Frequently Asked Questions

What does wrapTrustManagerIfNeeded() do?
wrapTrustManagerIfNeeded() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/JdkSslServerContext.java.
Where is wrapTrustManagerIfNeeded() defined?
wrapTrustManagerIfNeeded() is defined in handler/src/main/java/io/netty/handler/ssl/JdkSslServerContext.java at line 354.
What calls wrapTrustManagerIfNeeded()?
wrapTrustManagerIfNeeded() is called by 2 function(s): SSLContext, checkIfWrappingTrustManagerIsSupported.

Analyze Your Own Codebase

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

Try Supermodel Free