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, Moritz Halbritter
- 
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(@Nullable SslStoreBundle stores) Factory method to create a newSslBundleinstance.static SslBundleof(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key) Factory method to create a newSslBundleinstance.static SslBundleof(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key, @Nullable SslOptions options) Factory method to create a newSslBundleinstance.static SslBundleof(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key, @Nullable SslOptions options, @Nullable String protocol) Factory method to create a newSslBundleinstance.static SslBundleof(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key, @Nullable SslOptions options, @Nullable String protocol, @Nullable SslManagerBundle managers) Factory method to create a newSslBundleinstance.static SslBundleFactory method to create a newSslBundlewhich uses the system defaults.
- 
Field Details- 
DEFAULT_PROTOCOL
 
- 
- 
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
 
- 
of
- 
of
- 
ofstatic SslBundle of(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key, @Nullable SslOptions options) Factory 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
 
- 
ofstatic SslBundle of(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key, @Nullable SslOptions options, @Nullable String protocol) 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
- Returns:
- a new SslBundleinstance
 
- 
ofstatic SslBundle of(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key, @Nullable SslOptions options, @Nullable String protocol, @Nullable 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
 
- 
systemDefault
 
-