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.
SimpleTrustManagerFactory.SimpleTrustManagerFactorySpi
Modifier and Type | Field and Description |
---|---|
static javax.net.ssl.TrustManagerFactory |
INSTANCE |
private static InternalLogger |
logger |
private static javax.net.ssl.TrustManager |
tm |
Modifier | Constructor and Description |
---|---|
private |
InsecureTrustManagerFactory() |
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.
|
private static final InternalLogger logger
public static final javax.net.ssl.TrustManagerFactory INSTANCE
private static final javax.net.ssl.TrustManager tm
protected void engineInit(java.security.KeyStore keyStore) throws java.lang.Exception
SimpleTrustManagerFactory
engineInit
in class SimpleTrustManagerFactory
java.lang.Exception
TrustManagerFactorySpi.engineInit(KeyStore)
protected void engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters) throws java.lang.Exception
SimpleTrustManagerFactory
engineInit
in class SimpleTrustManagerFactory
java.lang.Exception
TrustManagerFactorySpi.engineInit(ManagerFactoryParameters)
protected javax.net.ssl.TrustManager[] engineGetTrustManagers()
SimpleTrustManagerFactory
engineGetTrustManagers
in class SimpleTrustManagerFactory
TrustManagerFactorySpi.engineGetTrustManagers()