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 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. 
- 
Method Details
- 
getKeyManagers
Return theKeyManagerinstances used to establish identity.- Returns:
 - the key managers
 
 - 
getKeyManagerFactory
KeyManagerFactory getKeyManagerFactory()Return theKeyManagerFactoryused to establish identity.- Returns:
 - the key manager factory
 
 - 
getTrustManagers
Return theTrustManagerinstances used to establish trust.- Returns:
 - the trust managers
 
 - 
getTrustManagerFactory
TrustManagerFactory getTrustManagerFactory()Return theTrustManagerFactoryused to establish trust.- Returns:
 - the trust manager factory
 
 - 
createSslContext
Factory method to create a newSSLContextfor thekey managersandtrust managersmanaged by this instance.- Parameters:
 protocol- the standard name of the SSL protocol. SeeSSLContext.getInstance(String)- Returns:
 - a new 
SSLContextinstance 
 - 
of
static SslManagerBundle of(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundleinstance.- Parameters:
 keyManagerFactory- the key manager factorytrustManagerFactory- the trust manager factory- Returns:
 - a new 
SslManagerBundleinstance 
 - 
from
- Parameters:
 storeBundle- the SSL store bundlekey- the key reference- Returns:
 - a new 
SslManagerBundleinstance 
 
 -