public final class InsecureTrustManagerFactory extends SimpleTrustManagerFactory
TrustManagerFactory
,它不信任任何验证就信任所有X.509证书。
注意:切勿在生产中使用此TrustManagerFactory
。 这纯粹是为了测试目的,因此它非常不安全。
Modifier and Type | Field and Description |
---|---|
static javax.net.ssl.TrustManagerFactory |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected javax.net.ssl.TrustManager[] |
engineGetTrustManagers()
为每种类型的信任材料返回一个信任管理器。
|
protected void |
engineInit(java.security.KeyStore keyStore)
使用证书颁发机构和相关信任材料的来源初始化此工厂。
|
protected void |
engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)
使用特定于提供者的密钥材料的来源初始化此工厂。
|
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()
Copyright © 2008–2018 The Netty Project. All rights reserved.