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, Moritz Halbritter
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiondefault SSLContextcreateSslContext(String protocol) Factory method to create a newSSLContextfor thekey managersandtrust managersmanaged by this instance.static SslManagerBundlefrom(TrustManager... trustManagers) Factory method to create a newSslManagerBundleusing the givenTrustManagersand the defaultKeyManagerFactory.static SslManagerBundlefrom(TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundleusing the givenTrustManagerFactoryand the defaultKeyManagerFactory.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- 
getKeyManagersReturn theKeyManagerinstances used to establish identity.- Returns:
- the key managers
 
- 
getKeyManagerFactoryKeyManagerFactory getKeyManagerFactory()Return theKeyManagerFactoryused to establish identity.- Returns:
- the key manager factory
 
- 
getTrustManagersReturn theTrustManagerinstances used to establish trust.- Returns:
- the trust managers
 
- 
getTrustManagerFactoryTrustManagerFactory getTrustManagerFactory()Return theTrustManagerFactoryused to establish trust.- Returns:
- the trust manager factory
 
- 
createSslContextFactory method to create a newSSLContextfor thekey managersandtrust managersmanaged by this instance.- Parameters:
- protocol- the standard name of the SSL protocol. See- SSLContext.getInstance(String)
- Returns:
- a new SSLContextinstance
 
- 
ofstatic SslManagerBundle of(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory) Factory method to create a newSslManagerBundleinstance.- Parameters:
- keyManagerFactory- the key manager factory
- trustManagerFactory- the trust manager factory
- Returns:
- a new SslManagerBundleinstance
 
- 
from- Parameters:
- storeBundle- the SSL store bundle
- key- the key reference
- Returns:
- a new SslManagerBundleinstance
 
- 
fromFactory method to create a newSslManagerBundleusing the givenTrustManagerFactoryand the defaultKeyManagerFactory.- Parameters:
- trustManagerFactory- the trust manager factory
- Returns:
- a new SslManagerBundleinstance
- Since:
- 3.5.0
 
- 
fromFactory method to create a newSslManagerBundleusing the givenTrustManagersand the defaultKeyManagerFactory.- Parameters:
- trustManagers- the trust managers to use
- Returns:
- a new SslManagerBundleinstance
- Since:
- 3.5.0
 
 
-