Package org.springframework.boot.ssl
Interface SslBundle
- All Known Implementing Classes:
- PropertiesSslBundle,- WebServerSslBundle
public interface SslBundle
A bundle of trust material that can be used to establish an SSL connection.
- Since:
- 3.1.0
- Author:
- Scott Frederick
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault SSLContextFactory method to create a newSSLContextfor this bundle.getKey()Return a reference to the key that should be used for this bundle orSslBundleKey.NONE.ReturnSslOptionsthat should be applied when establishing the SSL connection.Return the protocol to use when establishing the connection.Return theSslStoreBundlethat can be used to access this bundle's key and trust stores.static SslBundleof(SslStoreBundle stores) Factory method to create a newSslBundleinstance.static SslBundleof(SslStoreBundle stores, SslBundleKey key) Factory method to create a newSslBundleinstance.static SslBundleof(SslStoreBundle stores, SslBundleKey key, SslOptions options) Factory method to create a newSslBundleinstance.static SslBundleof(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol) Factory method to create a newSslBundleinstance.static SslBundleof(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol, SslManagerBundle managers) Factory method to create a newSslBundleinstance.
- 
Field Details- 
DEFAULT_PROTOCOLThe default protocol to use.- See Also:
 
 
- 
- 
Method Details- 
getStoresSslStoreBundle getStores()Return theSslStoreBundlethat can be used to access this bundle's key and trust stores.- Returns:
- the SslStoreBundleinstance for this bundle
 
- 
getKeySslBundleKey getKey()Return a reference to the key that should be used for this bundle orSslBundleKey.NONE.- Returns:
- a reference to the SSL key that should be used
 
- 
getOptionsSslOptions getOptions()ReturnSslOptionsthat should be applied when establishing the SSL connection.- Returns:
- the options that should be applied
 
- 
getProtocolString getProtocol()Return the protocol to use when establishing the connection. Values should be supported bySSLContext.getInstance(String).- Returns:
- the SSL protocol
- See Also:
 
- 
getManagersSslManagerBundle getManagers()- Returns:
- the SslManagerBundleinstance for this bundle
 
- 
createSslContextFactory method to create a newSSLContextfor this bundle.- Returns:
- a new SSLContextinstance
 
- 
ofFactory method to create a newSslBundleinstance.- Parameters:
- stores- the stores or- null
- Returns:
- a new SslBundleinstance
 
- 
ofFactory method to create a newSslBundleinstance.- Parameters:
- stores- the stores or- null
- key- the key or- null
- Returns:
- a new SslBundleinstance
 
- 
ofFactory method to create a newSslBundleinstance.- Parameters:
- stores- the stores or- null
- key- the key or- null
- options- the options or- null
- Returns:
- a new SslBundleinstance
 
- 
ofFactory method to create a newSslBundleinstance.- Parameters:
- stores- the stores or- null
- key- the key or- null
- options- the options or- null
- protocol- the protocol or- null
- Returns:
- a new SslBundleinstance
 
- 
ofstatic SslBundle of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol, SslManagerBundle managers) Factory method to create a newSslBundleinstance.- Parameters:
- stores- the stores or- null
- key- the key or- null
- options- the options or- null
- protocol- the protocol or- null
- managers- the managers or- null
- Returns:
- a new SslBundleinstance
 
 
-