public class InsecureTrustManagerFactory
extends io.netty.handler.ssl.util.SimpleTrustManagerFactory
InsecureTrustManagerFactory from Netty
4.0.36. Unlike the netty version, this class returns an X509ExtendedTrustManager instead of an
X509TrustManager instance, which allows us to bypass additional certificate validations.
An insecure TrustManagerFactory that trusts all X.509 certificates without any verification.
NOTE:
Never use this TrustManagerFactory in production.
It is purely for testing purposes, and thus it is very insecure.
| Modifier and Type | Field and Description |
|---|---|
static TrustManagerFactory |
INSTANCE |
static X509ExtendedTrustManager |
tm |
| Constructor and Description |
|---|
InsecureTrustManagerFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected TrustManager[] |
engineGetTrustManagers() |
protected void |
engineInit(KeyStore keyStore) |
protected void |
engineInit(ManagerFactoryParameters managerFactoryParameters) |
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getProvider, getTrustManagers, init, initpublic static final TrustManagerFactory INSTANCE
public static final X509ExtendedTrustManager tm
protected void engineInit(KeyStore keyStore) throws Exception
engineInit in class io.netty.handler.ssl.util.SimpleTrustManagerFactoryExceptionprotected void engineInit(ManagerFactoryParameters managerFactoryParameters) throws Exception
engineInit in class io.netty.handler.ssl.util.SimpleTrustManagerFactoryExceptionprotected TrustManager[] engineGetTrustManagers()
engineGetTrustManagers in class io.netty.handler.ssl.util.SimpleTrustManagerFactoryCopyright © 2016. All rights reserved.