- Enclosing class:
- EmbeddedWebServer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Configure an HTTPS server.
This interface is provided because
EmbeddedWebServer,
when configured for HTTPS, does not provide direct access to
its HttpsServer, but will create an
HttpsConfigurator and this interface can be used to
implement its HttpsConfigurator.configure(HttpsParameters)
method.
Typically, an implementation of the configure(javax.net.ssl.SSLContext, com.sun.net.httpserver.HttpsParameters)
method will contain the statement
The SSL parametersSSLParameters sslparam = context.getDefaultSSLParameters();
sslparamwill be modified as desired
and finally the method will call
The configuration can be changed for individual clients.params.setSSLParameters(sslparam)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(SSLContext context, HttpsParameters params) Configure an https server.
-
Method Details
-
configure
Configure an https server.- Parameters:
context- theSSLContextused to construct anHttpsConfiguratorparams- theHttpsParametersused provided as an argument toHttpsConfigurator.configure(HttpsParameters).
-