Package io.github.stevenjdh.simple.ssl
Class SimpleSSLContextImpl
java.lang.Object
io.github.stevenjdh.simple.ssl.SimpleSSLContextImpl
- All Implemented Interfaces:
SimpleSSLContext
Simple 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.SimpleSSLContext
SimpleSSLContext.Builder, SimpleSSLContext.KeyStoreType -
Method Summary
Modifier and TypeMethodDescription(package private) static SSLContextcreate(SSLContextBuilderImpl builder) Creates aSSLContextinstance that is initialized with an optional set of key and trust managers, and a source of secure random bytes.(package private) SSLContextGets the storedSSLContextinstance that was created via the builder.
-
Method Details
-
create
Creates aSSLContextinstance that is initialized with an optional set of key and trust managers, and a source of secure random bytes.Note: The
SSLContextwill use TLS v1.3 by default.- Parameters:
builder- The configuration needed to build aSSLContext.- Returns:
- A new
SSLContextinstance.
-
getSSLContext
SSLContext getSSLContext()Gets the storedSSLContextinstance that was created via the builder.- Returns:
- The
SSLContextinstance.
-