Home / Class/ ConstantTrustManagerFactory Class — netty Architecture

ConstantTrustManagerFactory Class — netty Architecture

Architecture documentation for the ConstantTrustManagerFactory class in ConstantTrustManagerFactory.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  38116353_8c95_5c77_1643_6f6764ae6a75["ConstantTrustManagerFactory"]
  60a69c3b_8679_02f7_77f1_52a441d2efc8["ConstantTrustManagerFactory.java"]
  38116353_8c95_5c77_1643_6f6764ae6a75 -->|defined in| 60a69c3b_8679_02f7_77f1_52a441d2efc8
  5124e021_93a9_af29_c04b_64825197f6d2["ConstantTrustManagerFactory()"]
  38116353_8c95_5c77_1643_6f6764ae6a75 -->|method| 5124e021_93a9_af29_c04b_64825197f6d2
  be6e5615_ae7f_2cb0_9b67_50d1f2e96e8a["engineInit()"]
  38116353_8c95_5c77_1643_6f6764ae6a75 -->|method| be6e5615_ae7f_2cb0_9b67_50d1f2e96e8a
  3b77e10d_e349_3afb_bf28_7ecb8b720354["engineGetTrustManagers()"]
  38116353_8c95_5c77_1643_6f6764ae6a75 -->|method| 3b77e10d_e349_3afb_bf28_7ecb8b720354

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/ConstantTrustManagerFactory.java lines 28–49

final class ConstantTrustManagerFactory extends SimpleTrustManagerFactory {
    private final TrustManager tm;

    ConstantTrustManagerFactory(TrustManager tm) {
        this.tm = ObjectUtil.checkNotNull(tm, "tm");
    }

    @Override
    protected void engineInit(KeyStore keyStore) {
        // NOOP
    }

    @Override
    protected void engineInit(ManagerFactoryParameters managerFactoryParameters) {
        // NOOP
    }

    @Override
    protected TrustManager[] engineGetTrustManagers() {
        return new TrustManager[] { tm };
    }
}

Frequently Asked Questions

What is the ConstantTrustManagerFactory class?
ConstantTrustManagerFactory is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/ConstantTrustManagerFactory.java.
Where is ConstantTrustManagerFactory defined?
ConstantTrustManagerFactory is defined in handler/src/test/java/io/netty/handler/ssl/ConstantTrustManagerFactory.java at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free