public final class InsecureTrustManagerFactory extends SimpleTrustManagerFactory
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 javax.net.ssl.TrustManagerFactory |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
protected javax.net.ssl.TrustManager[] |
engineGetTrustManagers()
Returns one trust manager for each type of trust material.
|
protected void |
engineInit(java.security.KeyStore keyStore)
Initializes this factory with a source of certificate authorities and related trust material.
|
protected void |
engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)
Initializes this factory with a source of provider-specific key material.
|
protected void engineInit(java.security.KeyStore keyStore)
throws java.lang.Exception
SimpleTrustManagerFactoryengineInit in class SimpleTrustManagerFactoryjava.lang.ExceptionTrustManagerFactorySpi.engineInit(KeyStore)protected void engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)
throws java.lang.Exception
SimpleTrustManagerFactoryengineInit in class SimpleTrustManagerFactoryjava.lang.ExceptionTrustManagerFactorySpi.engineInit(ManagerFactoryParameters)protected javax.net.ssl.TrustManager[] engineGetTrustManagers()
SimpleTrustManagerFactoryengineGetTrustManagers in class SimpleTrustManagerFactoryTrustManagerFactorySpi.engineGetTrustManagers()Copyright © 2008–2018 The Netty Project. All rights reserved.