Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有兴趣动态更新信任库。 什么是最好的选择? 重新加载SSLContext还是可以重新创建TrustManagers?
SSLContext
TrustManagers
你不能“重新加载”一个SSLContext,但你当然可以创建一个新的。自定义TrustManager将无济于事,因为它是TrustManagerFactory与密钥库连接的底层,而不是TrustManager.
TrustManager
TrustManagerFactory