How can i use custom SSLContext and custom SSLServerSocketFactory in spark-java framework? I've searched in SparkServerImpl but have no idea how to inject sslfactory, any suggestions?
标签:
spark-java
相关问题
- Refresh static files served by SparkJava
- Parse POST body to java object using spark
- How read data sent by Client with Spark?
- How can a native Servlet Filter be used when using
- Spark - java.lang.ClassCastException: cannot assig
相关文章
- How can a native Servlet Filter be used when using
- Spark - java.lang.ClassCastException: cannot assig
- spark java: how to handle multipart/form-data inpu
- Use https in spark-java
- Why does Html5 audio load all songs from server on
- How to deploy a spark Java web app?
- How to serialize List object in Gson
- Can't load static file while in route “/post/:
You can pass directly into Spark the parameters of the keystore, like this:
Those are all strings, and for example, the keystore values could be:
This way, Spark will have the parameters to create the SslContextFactory inside, as you can see here:
https://github.com/perwendel/spark/blob/2.3/src/main/java/spark/webserver/jetty/SocketConnectorFactory.java#L68-L82