feat(gateway): Attache the sslsession to the request
Closes gravitee-io/issues#1922
@@ -29,7 +29,7 @@ import io.vertx.core.MultiMap;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.core.net.SocketAddress;
-import java.time.Instant;
+import javax.net.ssl.SSLSession;
import java.util.Map;
/**
@@ -174,6 +174,11 @@ class VertxHttpServerRequest implements Request {
return (address != null) ? address.host() : null;
}
+ @Override
+ public SSLSession sslSession() {
+ return httpServerRequest.sslSession();
+ }
+
@Override
public Request bodyHandler(Handler<Buffer> bodyHandler) {
if (! httpServerRequest.isEnded()) {
