Skip to content

Instantly share code, notes, and snippets.

@vietj
Created March 19, 2020 07:38
Show Gist options
  • Save vietj/9f9ab00638ea9592096d89509287742c to your computer and use it in GitHub Desktop.
Save vietj/9f9ab00638ea9592096d89509287742c to your computer and use it in GitHub Desktop.
public void customKeyManagerFactory() {
Vertx vertx = Vertx.vertx();
vertx.createHttpServer(new HttpServerOptions().setKeyCertOptions(new KeyCertOptions() {
@Override
public KeyManagerFactory getKeyManagerFactory(Vertx vertx) throws Exception {
throw new UnsupportedOperationException("Implement me");
}
@Override
public KeyCertOptions clone() {
throw new UnsupportedOperationException("Implement me");
}
})).requestHandler(req -> {
}).listen();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment