use of com.github.dreamhead.moco.HttpsCertificate in project moco by dreamhead.
the class MocoHttpServer method toSslHandler.
private Function<HttpsCertificate, SslHandler> toSslHandler() {
return new Function<HttpsCertificate, SslHandler>() {
@Override
public SslHandler apply(final HttpsCertificate certificate) {
SSLEngine sslEngine = certificate.createSSLEngine();
sslEngine.setUseClientMode(false);
return new SslHandler(sslEngine);
}
};
}
Aggregations