From 0c9da0234d24421c27d290fc2be03d72e0159abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 30 Jul 2020 18:08:51 +0200 Subject: vaadin-u2f : update, but is deprecated right now --- java/vaadin-u2f/ivy.xml | 8 ++++---- java/vaadin-u2f/src/run/java/ch/asynk/Main.java | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/java/vaadin-u2f/ivy.xml b/java/vaadin-u2f/ivy.xml index 4966c64..ba614e1 100644 --- a/java/vaadin-u2f/ivy.xml +++ b/java/vaadin-u2f/ivy.xml @@ -1,6 +1,6 @@ + ]> - + - + - + 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"; -- cgit v1.1-2-g2b99