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 Details

  • Method Details

    • getStores

      SslStoreBundle getStores()
      Return the SslStoreBundle that can be used to access this bundle's key and trust stores.
      Returns:
      the SslStoreBundle instance for this bundle
    • getKey

      SslBundleKey getKey()
      Return a reference to the key that should be used for this bundle or SslBundleKey.NONE.
      Returns:
      a reference to the SSL key that should be used
    • getOptions

      SslOptions getOptions()
      Return SslOptions that should be applied when establishing the SSL connection.
      Returns:
      the options that should be applied
    • getProtocol

      String getProtocol()
      Return the protocol to use when establishing the connection. Values should be supported by SSLContext.getInstance(String).
      Returns:
      the SSL protocol
      See Also:
    • getManagers

      SslManagerBundle getManagers()
      Return the SslManagerBundle that can be used to access this bundle's key and trust managers.
      Returns:
      the SslManagerBundle instance for this bundle
    • createSslContext

      default SSLContext createSslContext()
      Factory method to create a new SSLContext for this bundle.
      Returns:
      a new SSLContext instance
    • of

      static SslBundle of(@Nullable SslStoreBundle stores)
      Factory method to create a new SslBundle instance.
      Parameters:
      stores - the stores or null
      Returns:
      a new