serverOptions.setKeyCertOptions(serverCert.get()); if (requireClientAuth) { serverOptions.setClientAuth(ClientAuth.REQUIRED);
serverOptions.setKeyCertOptions(serverCert); if (requiresClientAuth) { serverOptions.setClientAuth(ClientAuth.REQUIRED);
@Override public HttpTermOptions setClientAuth(ClientAuth clientAuth) { return (HttpTermOptions) super.setClientAuth(clientAuth); }
options.setClientAuth(ClientAuth.REQUIRED);
serverOptions.setKeyCertOptions(serverCert.get()); if (requireClientAuth) { serverOptions.setClientAuth(ClientAuth.REQUIRED);
options.setClientAuth(ClientAuth.REQUEST);
serverOptions.setKeyCertOptions(serverCert); if (requiresClientAuth) { serverOptions.setClientAuth(ClientAuth.REQUIRED);
options.setKeyStoreOptions(SSLServerContext.getKeyStoreOption(accessor)); if (authentication) { options.setClientAuth(ClientAuth.REQUIRED);
opt.setSsl(true).setClientAuth(ClientAuth.REQUIRED) .setPemKeyCertOptions(new PemKeyCertOptions() .setKeyPath(ssl_cert_key)
options.setClientAuth(ClientAuth.REQUIRED);
@Test public void testClientAuthFail(TestContext ctx) throws Exception { testSimple(options -> options .setTrustAll(true) .setSsl(true) .setUseAlpn(true), options -> options .setSsl(true) .setUseAlpn(true) .setKeyStoreOptions(new JksOptions() .setPath("tls/server-keystore.jks") .setPassword("wibble")) .setClientAuth(ClientAuth.REQUIRED) .setTrustStoreOptions(new JksOptions() .setPath("tls/client-truststore.jks") .setPassword("wibble")), ctx, false); }
options.setClientAuth(ClientAuth.REQUIRED);
@Test public void testClientAuth(TestContext ctx) throws Exception { testSimple(options -> options .setTrustAll(true) .setSsl(true) .setUseAlpn(true) .setKeyStoreOptions(new JksOptions() .setPath("tls/server-keystore.jks") .setPassword("wibble")) , options -> options .setSsl(true) .setUseAlpn(true) .setKeyStoreOptions(new JksOptions() .setPath("tls/server-keystore.jks") .setPassword("wibble")) .setClientAuth(ClientAuth.REQUIRED) .setTrustStoreOptions(new JksOptions() .setPath("tls/client-truststore.jks") .setPassword("wibble")), ctx, true); }