Package io.github.stevenjdh.simple.ssl
Class PEMContextImpl
java.lang.Object
io.github.stevenjdh.simple.ssl.PEMContextImpl
- All Implemented Interfaces:
PEMContext
PEM derived SSLContext implementation. Contains all configuration information
needed to build a custom context.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.stevenjdh.simple.ssl.PEMContext
PEMContext.Builder
-
Method Summary
Modifier and TypeMethodDescription(package private) static SSLContext
create
(PEMContextBuilderImpl builder) Creates aSSLContext
instance that is initialized with an optional set of key and trust managers, and a source of secure random bytes.(package private) SSLContext
Gets the storedSSLContext
instance that was created via the builder.
-
Method Details
-
create
Creates aSSLContext
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 aSSLContext
.- Returns:
- A new
SSLContext
instance.
-
getSSLContext
SSLContext getSSLContext()Gets the storedSSLContext
instance that was created via the builder.- Returns:
- The
SSLContext
instance.
-