ExceptionTrustManagerFactory Class — netty Architecture
Architecture documentation for the ExceptionTrustManagerFactory class in SslErrorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2d51441e_edec_5b6e_0469_d3e5718e7693["ExceptionTrustManagerFactory"] 9f113343_96ee_ca58_c1eb_a2480db3e007["SslErrorTest.java"] 2d51441e_edec_5b6e_0469_d3e5718e7693 -->|defined in| 9f113343_96ee_ca58_c1eb_a2480db3e007 42006e41_acae_efcb_412e_c28527d652de["ExceptionTrustManagerFactory()"] 2d51441e_edec_5b6e_0469_d3e5718e7693 -->|method| 42006e41_acae_efcb_412e_c28527d652de ee216880_56b4_147a_840f_1faebd05f325["engineInit()"] 2d51441e_edec_5b6e_0469_d3e5718e7693 -->|method| ee216880_56b4_147a_840f_1faebd05f325 3d3f4782_2010_f27d_5a89_8354750af5fa["engineGetTrustManagers()"] 2d51441e_edec_5b6e_0469_d3e5718e7693 -->|method| 3d3f4782_2010_f27d_5a89_8354750af5fa
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java lines 204–238
private static final class ExceptionTrustManagerFactory extends SimpleTrustManagerFactory {
private final CertificateException exception;
ExceptionTrustManagerFactory(CertificateException exception) {
this.exception = exception;
}
@Override
protected void engineInit(KeyStore keyStore) { }
@Override
protected void engineInit(ManagerFactoryParameters managerFactoryParameters) { }
@Override
protected TrustManager[] engineGetTrustManagers() {
return new TrustManager[] { new X509TrustManager() {
@Override
public void checkClientTrusted(X509Certificate[] x509Certificates, String s)
throws CertificateException {
throw exception;
}
@Override
public void checkServerTrusted(X509Certificate[] x509Certificates, String s)
throws CertificateException {
throw exception;
}
@Override
public X509Certificate[] getAcceptedIssuers() {
return EmptyArrays.EMPTY_X509_CERTIFICATES;
}
} };
}
}
Source
Frequently Asked Questions
What is the ExceptionTrustManagerFactory class?
ExceptionTrustManagerFactory is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java.
Where is ExceptionTrustManagerFactory defined?
ExceptionTrustManagerFactory is defined in handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java at line 204.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free