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 TrustManagerFactory |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
protected TrustManager[] |
engineGetTrustManagers()
Returns one trust manager for each type of trust material.
|
protected void |
engineInit(KeyStore keyStore)
Initializes this factory with a source of certificate authorities and related trust material.
|
protected void |
engineInit(ManagerFactoryParameters managerFactoryParameters)
Initializes this factory with a source of provider-specific key material.
|
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getProvider, getTrustManagers, init, initpublic static final TrustManagerFactory INSTANCE
protected void engineInit(KeyStore keyStore) throws Exception
SimpleTrustManagerFactoryengineInit in class SimpleTrustManagerFactoryExceptionTrustManagerFactorySpi.engineInit(KeyStore)protected void engineInit(ManagerFactoryParameters managerFactoryParameters) throws Exception
SimpleTrustManagerFactoryengineInit in class SimpleTrustManagerFactoryExceptionTrustManagerFactorySpi.engineInit(ManagerFactoryParameters)protected TrustManager[] engineGetTrustManagers()
SimpleTrustManagerFactoryengineGetTrustManagers in class SimpleTrustManagerFactoryTrustManagerFactorySpi.engineGetTrustManagers()Copyright © 2008-2015 The Netty Project. All Rights Reserved.