Home / Function/ X509TrustManager() — netty Function Reference

X509TrustManager() — netty Function Reference

Architecture documentation for the X509TrustManager() function in SslContextTrustManagerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  65cd9a4e_bd9d_29f3_95a9_77e382dec9a9["X509TrustManager()"]
  78725ab9_1005_d91e_3eb0_838510c45286["SslContextTrustManagerTest"]
  65cd9a4e_bd9d_29f3_95a9_77e382dec9a9 -->|defined in| 78725ab9_1005_d91e_3eb0_838510c45286
  style 65cd9a4e_bd9d_29f3_95a9_77e382dec9a9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslContextTrustManagerTest.java lines 107–121

    private static X509TrustManager getTrustManager(String[] resourceNames)
            throws Exception {
        X509Certificate[] certCollection = loadCertCollection(resourceNames);
        TrustManagerFactory tmf = SslContext.buildTrustManagerFactory(
                certCollection, null, null);

        for (TrustManager tm : tmf.getTrustManagers()) {
            if (tm instanceof X509TrustManager) {
                return (X509TrustManager) tm;
            }
        }

        throw new Exception(
                "Unable to find any X509TrustManager from this factory.");
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free