Class SimpleSSLContextImpl

java.lang.Object
io.github.stevenjdh.simple.ssl.SimpleSSLContextImpl
All Implemented Interfaces:
SimpleSSLContext

final class SimpleSSLContextImpl extends Object implements SimpleSSLContext
Simple SSLContext implementation. Contains all configuration information needed to build a custom context.
Since:
1.0
  • Method Details

    • create

      static SSLContext create(SSLContextBuilderImpl builder)
      Creates a SSLContext instance that is initialized with an optional set of key and trust managers, and a source of secure random bytes.

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

      Parameters:
      builder - The configuration needed to build a SSLContext.
      Returns:
      A new SSLContext instance.
    • getSSLContext

      SSLContext getSSLContext()
      Gets the stored SSLContext instance that was created via the builder.
      Returns:
      The SSLContext instance.