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.
限定符和类型 | 字段和说明 |
---|---|
static javax.net.ssl.TrustManagerFactory |
INSTANCE |
限定符和类型 | 方法和说明 |
---|---|
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
SimpleTrustManagerFactory
engineInit
在类中 SimpleTrustManagerFactory
java.lang.Exception
TrustManagerFactorySpi.engineInit(KeyStore)
protected void engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters) throws java.lang.Exception
SimpleTrustManagerFactory
engineInit
在类中 SimpleTrustManagerFactory
java.lang.Exception
TrustManagerFactorySpi.engineInit(ManagerFactoryParameters)
protected javax.net.ssl.TrustManager[] engineGetTrustManagers()
SimpleTrustManagerFactory
engineGetTrustManagers
在类中 SimpleTrustManagerFactory
TrustManagerFactorySpi.engineGetTrustManagers()