Package io.github.stevenjdh.simple.ssl
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder of SSLContext instances.static enumThe supported keystore formats. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic GitPropertiesGets build information from when the library was created.static SimpleSSLContext.BuilderCreates a newSimpleSSLContextbuilder to configure a customSSLContextinstance using an optional set of keystore and truststore instances.static PEMContext.BuilderCreate newPEMContextbuilder to configure a customSSLContextinstance using PEM files.static SSLContextCreates a newSSLContextinstance with a default context similar toSSLContext.getDefault().
-
Method Details
-
newSSLContext
Creates a newSSLContextinstance with a default context similar toSSLContext.getDefault().Note: The
SSLContextwill use TLS v1.3 by default.- Returns:
- A new
SSLContext.
-
newBuilder
Creates a newSimpleSSLContextbuilder to configure a customSSLContextinstance using an optional set of keystore and truststore instances.- Returns:
- A
SimpleSSLContext.Builder.
-
newPEMContextBuilder
Create newPEMContextbuilder to configure a customSSLContextinstance using PEM files.- Returns:
- A
PEMContext.Builder.
-
getBuildInfo
Gets build information from when the library was created.- Returns:
- Build information around specific git commit.
-