接口 SslManagerBundle
public interface SslManagerBundle
A bundle of key and trust managers that can be used to establish an SSL connection.
Instances are usually created
from an
SslStoreBundle.- 从以下版本开始:
- 3.1.0
- 作者:
- Scott Frederick
- 另请参阅:
-
方法概要
修饰符和类型方法说明default SSLContextcreateSslContext(String protocol) Factory method to create a newSSLContextfor thekey managersandtrust managersmanaged by this instance.static SslManagerBundlefrom(SslStoreBundle storeBundle, SslBundleKey key) Return theKeyManagerFactoryused to establish identity.default KeyManager[]Return theKeyManagerinstances used to establish identity.Return theTrustManagerFactoryused to establish trust.default TrustManager[]Return theTrustManagerinstances used to establish trust.static SslManagerBundleof(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundleinstance.
-
方法详细资料
-
getKeyManagers
Return theKeyManagerinstances used to establish identity.- 返回:
- the key managers
-
getKeyManagerFactory
KeyManagerFactory getKeyManagerFactory()Return theKeyManagerFactoryused to establish identity.- 返回:
- the key manager factory
-
getTrustManagers
Return theTrustManagerinstances used to establish trust.- 返回:
- the trust managers
-
getTrustManagerFactory
TrustManagerFactory getTrustManagerFactory()Return theTrustManagerFactoryused to establish trust.- 返回:
- the trust manager factory
-
createSslContext
Factory method to create a newSSLContextfor thekey managersandtrust managersmanaged by this instance.- 参数:
protocol- the standard name of the SSL protocol. SeeSSLContext.getInstance(String)- 返回:
- a new
SSLContextinstance
-
of
static SslManagerBundle of(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundleinstance.- 参数:
keyManagerFactory- the key manager factorytrustManagerFactory- the trust manager factory- 返回:
- a new
SslManagerBundleinstance
-
from
- 参数:
storeBundle- the SSL store bundlekey- the key reference- 返回:
- a new
SslManagerBundleinstance
-