Home / Function/ TrustManager() — netty Function Reference

TrustManager() — netty Function Reference

Architecture documentation for the TrustManager() function in ResumptionController.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9f96930e_5a04_0ce9_5bdd_a373b70ea350["TrustManager()"]
  49bf5aad_8689_2271_b5e4_1894e1632471["ResumptionController"]
  9f96930e_5a04_0ce9_5bdd_a373b70ea350 -->|defined in| 49bf5aad_8689_2271_b5e4_1894e1632471
  3d7ff75d_ab2e_0eff_07ef_8a47f68c42bf["X509ExtendedWrapTrustManager()"]
  9f96930e_5a04_0ce9_5bdd_a373b70ea350 -->|calls| 3d7ff75d_ab2e_0eff_07ef_8a47f68c42bf
  style 9f96930e_5a04_0ce9_5bdd_a373b70ea350 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/ResumptionController.java lines 42–55

    public TrustManager wrapIfNeeded(TrustManager tm) {
        if (tm instanceof ResumableX509ExtendedTrustManager) {
            if (!(tm instanceof X509ExtendedTrustManager)) {
                throw new IllegalStateException("ResumableX509ExtendedTrustManager implementation must be a " +
                        "subclass of X509ExtendedTrustManager, found: " + (tm == null ? null : tm.getClass()));
            }
            if (!resumableTm.compareAndSet(null, (ResumableX509ExtendedTrustManager) tm)) {
                throw new IllegalStateException(
                        "Only one ResumableX509ExtendedTrustManager can be configured for resumed sessions");
            }
            return new X509ExtendedWrapTrustManager((X509ExtendedTrustManager) tm, confirmedValidations);
        }
        return tm;
    }

Domain

Subdomains

Frequently Asked Questions

What does TrustManager() do?
TrustManager() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ResumptionController.java.
Where is TrustManager() defined?
TrustManager() is defined in handler/src/main/java/io/netty/handler/ssl/ResumptionController.java at line 42.
What does TrustManager() call?
TrustManager() calls 1 function(s): X509ExtendedWrapTrustManager.

Analyze Your Own Codebase

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

Try Supermodel Free