Home / Function/ checkIfWrappingTrustManagerIsSupported() — netty Function Reference

checkIfWrappingTrustManagerIsSupported() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/JdkSslServerContext.java lines 72–90

    static void checkIfWrappingTrustManagerIsSupported() throws CertificateException,
            InvalidAlgorithmParameterException, NoSuchPaddingException, NoSuchAlgorithmException,
            InvalidKeySpecException, IOException, KeyException, KeyStoreException, UnrecoverableKeyException {
        X509Certificate[] certs = toX509Certificates(
                new ByteArrayInputStream(PROBING_CERT.getBytes(CharsetUtil.US_ASCII)));
        PrivateKey privateKey = toPrivateKey(new ByteArrayInputStream(
                PROBING_KEY.getBytes(CharsetUtil.UTF_8)), null);
        char[] keyStorePassword = keyStorePassword(null);
        KeyStore ks = buildKeyStore(certs, privateKey, keyStorePassword, null);
        KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
        kmf.init(ks, keyStorePassword);

        SSLContext ctx = SSLContext.getInstance(PROTOCOL);
        TrustManagerFactory tm = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
        tm.init((KeyStore) null);
        TrustManager[] managers = tm.getTrustManagers();

        ctx.init(kmf.getKeyManagers(), wrapTrustManagerIfNeeded(managers, null), null);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free