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 interface
A builder of SSLContext instances.static enum
The supported keystore formats. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic GitProperties
Gets build information from when the library was created.static SimpleSSLContext.Builder
Creates a newSimpleSSLContext
builder to configure a customSSLContext
instance using an optional set of keystore and truststore instances.static PEMContext.Builder
Create newPEMContext
builder to configure a customSSLContext
instance using PEM files.static SSLContext
Creates a newSSLContext
instance with a default context similar toSSLContext.getDefault()
.
-
Method Details
-
newSSLContext
Creates a newSSLContext
instance with a default context similar toSSLContext.getDefault()
.Note: The
SSLContext
will use TLS v1.3 by default.- Returns:
- A new
SSLContext
.
-
newBuilder
Creates a newSimpleSSLContext
builder to configure a customSSLContext
instance using an optional set of keystore and truststore instances.- Returns:
- A
SimpleSSLContext.Builder
.
-
newPEMContextBuilder
Create newPEMContext
builder to configure a customSSLContext
instance using PEM files.- Returns:
- A
PEMContext.Builder
.
-
getBuildInfo
Gets build information from when the library was created.- Returns:
- Build information around specific git commit.
-