Interface SimpleSSLContext

All Known Implementing Classes:
SimpleSSLContextImpl

public interface SimpleSSLContext
A Simple SSLContext.

A SimpleSSLContext can be used to build a custom SSLContext for secure communication using an optional set of keystore and truststore instances.

Since:
1.0
  • Method Details

    • newSSLContext

      static SSLContext newSSLContext()
      Creates a new SSLContext instance with a default context similar to SSLContext.getDefault().

      Note: The SSLContext will use TLS v1.3 by default.

      Returns:
      A new SSLContext.
    • newBuilder

      static SimpleSSLContext.Builder newBuilder()
      Creates a new SimpleSSLContext builder to configure a custom SSLContext instance using an optional set of keystore and truststore instances.
      Returns:
      A SimpleSSLContext.Builder.
    • newPEMContextBuilder

      static PEMContext.Builder newPEMContextBuilder()
      Create new PEMContext builder to configure a custom SSLContext instance using PEM files.
      Returns:
      A PEMContext.Builder.
    • getBuildInfo

      static GitProperties getBuildInfo()
      Gets build information from when the library was created.
      Returns:
      Build information around specific git commit.