接口 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 SSLContext
createSslContext
(String protocol) Factory method to create a newSSLContext
for thekey managers
andtrust managers
managed by this instance.static SslManagerBundle
from
(SslStoreBundle storeBundle, SslBundleKey key) Return theKeyManagerFactory
used to establish identity.default KeyManager[]
Return theKeyManager
instances used to establish identity.Return theTrustManagerFactory
used to establish trust.default TrustManager[]
Return theTrustManager
instances used to establish trust.static SslManagerBundle
of
(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundle
instance.
-
方法详细资料
-
getKeyManagers
Return theKeyManager
instances used to establish identity.- 返回:
- the key managers
-
getKeyManagerFactory
KeyManagerFactory getKeyManagerFactory()Return theKeyManagerFactory
used to establish identity.- 返回:
- the key manager factory
-
getTrustManagers
Return theTrustManager
instances used to establish trust.- 返回:
- the trust managers
-
getTrustManagerFactory
TrustManagerFactory getTrustManagerFactory()Return theTrustManagerFactory
used to establish trust.- 返回:
- the trust manager factory
-
createSslContext
Factory method to create a newSSLContext
for thekey managers
andtrust managers
managed by this instance.- 参数:
protocol
- the standard name of the SSL protocol. SeeSSLContext.getInstance(String)
- 返回:
- a new
SSLContext
instance
-
of
static SslManagerBundle of(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundle
instance.- 参数:
keyManagerFactory
- the key manager factorytrustManagerFactory
- the trust manager factory- 返回:
- a new
SslManagerBundle
instance
-
from
- 参数:
storeBundle
- the SSL store bundlekey
- the key reference- 返回:
- a new
SslManagerBundle
instance
-