summaryrefslogtreecommitdiffstats
path: root/java/vaadin-u2f/src/run/java/ch/asynk/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/vaadin-u2f/src/run/java/ch/asynk/Main.java')
-rw-r--r--java/vaadin-u2f/src/run/java/ch/asynk/Main.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/vaadin-u2f/src/run/java/ch/asynk/Main.java b/java/vaadin-u2f/src/run/java/ch/asynk/Main.java
index f6dfc4e..87a84d9 100644
--- a/java/vaadin-u2f/src/run/java/ch/asynk/Main.java
+++ b/java/vaadin-u2f/src/run/java/ch/asynk/Main.java
@@ -68,7 +68,7 @@ abstract class VaadinJettyServer extends Server
HttpConfiguration httpConf = new HttpConfiguration();
httpConf.addCustomizer(new SecureRequestCustomizer());
- SslContextFactory sslContextFactory = new SslContextFactory();
+ SslContextFactory.Client sslContextFactory = new SslContextFactory.Client();
// keytool -keystore src/run/resources/keystore.jks -genkey -alias asynk.ch -keyalg RSA -keysize 2048
sslContextFactory.setKeyStorePath(VaadinJettyServer.class.getResource("/keystore.jks").toExternalForm());
sslContextFactory.setKeyStorePassword("123456");
@@ -121,6 +121,8 @@ public class Main
{
public static void main(String[] args) throws Exception
{
+ System.err.println("!!! U2F has been superseded by Web Authentication !!!");
+ System.err.println(" --> https://github.com/Yubico/java-webauthn-server/\n");
int port = 8666;
String webRoot = System.getProperty("WEBROOT");
if (webRoot == null) webRoot = "./src/main/WebContent";