本文介绍了SSLContext.我应该重新加载吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对动态更新信任库感兴趣.
最好的选择是什么?
重新加载SSLContext还是可以重新创建TrustManagers?

I am interested in updating a truststore dynamically.
What would be the best option?
Reload SSLContext or is it possible to recreate TrustManagers?

推荐答案

您不能重新加载" SSLContext,但是可以创建一个新的.自定义TrustManager将无济于事,因为它是与密钥库建立连接的基础TrustManagerFactory而不是TrustManager.

You can't 'reload' an SSLContext, but you can certainly create a new one. A custom TrustManager won't help, as it is the underlying TrustManagerFactory that has the connection to the keystore, not the TrustManager.

这篇关于SSLContext.我应该重新加载吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-26 02:59