Package org.springframework.boot.ssl
Interface 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
.- Since:
- 3.1.0
- Author:
- Scott Frederick
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
Method Details
-
getKeyManagers
Return theKeyManager
instances used to establish identity.- Returns:
- the key managers
-
getKeyManagerFactory
KeyManagerFactory getKeyManagerFactory()Return theKeyManagerFactory
used to establish identity.- Returns:
- the key manager factory
-
getTrustManagers
Return theTrustManager
instances used to establish trust.- Returns:
- the trust managers
-
getTrustManagerFactory
TrustManagerFactory getTrustManagerFactory()Return theTrustManagerFactory
used to establish trust.- Returns:
- the trust manager factory
-
createSslContext
Factory method to create a newSSLContext
for thekey managers
andtrust managers
managed by this instance.- Parameters:
protocol
- the standard name of the SSL protocol. SeeSSLContext.getInstance(String)
- Returns:
- a new
SSLContext
instance
-
of
static SslManagerBundle of(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundle
instance.- Parameters:
keyManagerFactory
- the key manager factorytrustManagerFactory
- the trust manager factory- Returns:
- a new
SslManagerBundle
instance
-
from
- Parameters:
storeBundle
- the SSL store bundlekey
- the key reference- Returns:
- a new
SslManagerBundle
instance
-