diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-30 18:08:51 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-30 18:08:51 +0200 |
commit | 0c9da0234d24421c27d290fc2be03d72e0159abe (patch) | |
tree | 3d5701a1e2db7ee411b83dd05dedd11d5d37f20a /java/vaadin-u2f/src | |
parent | c4dac49def2812dac2f32188aae4080d7aaa649c (diff) | |
download | share-master.zip share-master.tar.gz |
Diffstat (limited to 'java/vaadin-u2f/src')
-rw-r--r-- | java/vaadin-u2f/src/run/java/ch/asynk/Main.java | 4 |
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"; |