Class PEMContextImpl

java.lang.Object
io.github.stevenjdh.simple.ssl.PEMContextImpl
All Implemented Interfaces:
PEMContext

final class PEMContextImpl extends Object implements PEMContext
PEM derived SSLContext implementation. Contains all configuration information needed to build a custom context.
Since:
1.0
  • Method Details

    • create

      static SSLContext create(PEMContextBuilderImpl 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.