@Override public HttpServerOptions setClientAuth(ClientAuth clientAuth) { super.setClientAuth(clientAuth); return this; }
case "clientAuth": if (member.getValue() instanceof String) { obj.setClientAuth(io.vertx.core.http.ClientAuth.valueOf((String)member.getValue()));
@Override public HttpServerOptions setClientAuth(ClientAuth clientAuth) { super.setClientAuth(clientAuth); return this; }
case "clientAuth": if (member.getValue() instanceof String) { obj.setClientAuth(io.vertx.core.http.ClientAuth.valueOf((String)member.getValue()));
public static NetServerOptions buildNetServerOptions(SSLOption sslOption, SSLCustom sslCustom, NetServerOptions netServerOptions) { buildTCPSSLOptions(sslOption, sslCustom, netServerOptions); if (sslOption.isAuthPeer()) { netServerOptions.setClientAuth(ClientAuth.REQUIRED); } else { netServerOptions.setClientAuth(ClientAuth.REQUEST); } return netServerOptions; }
options.setKeyCertOptions(serverCert.get()); if (requireClientAuth) { options.setClientAuth(ClientAuth.REQUIRED);
@Override public ProtonServerOptions setClientAuth(ClientAuth clientAuth) { super.setClientAuth(clientAuth); return this; }
@Override public MqttServerOptions setClientAuth(ClientAuth clientAuth) { super.setClientAuth(clientAuth); return this; }
@Override public MqttServerOptions setClientAuth(ClientAuth clientAuth) { super.setClientAuth(clientAuth); return this; }
public static NetServerOptions buildNetServerOptions(SSLOption sslOption, SSLCustom sslCustom, NetServerOptions netServerOptions) { buildTCPSSLOptions(sslOption, sslCustom, netServerOptions); if (sslOption.isAuthPeer()) { netServerOptions.setClientAuth(ClientAuth.REQUIRED); } else { netServerOptions.setClientAuth(ClientAuth.REQUEST); } return netServerOptions; }
public static NetServerOptions buildNetServerOptions(SSLOption sslOption, SSLCustom sslCustom, NetServerOptions netServerOptions) { buildTCPSSLOptions(sslOption, sslCustom, netServerOptions); if (sslOption.isAuthPeer()) { netServerOptions.setClientAuth(ClientAuth.REQUIRED); } else { netServerOptions.setClientAuth(ClientAuth.REQUEST); } return netServerOptions; }
options.setKeyCertOptions(serverCert.get()); if (requireClientAuth) { options.setClientAuth(ClientAuth.REQUIRED);
/** * Adds TLS trust anchor configuration to a given set of server options. * <p> * The options for configuring the server side trust anchor are * determined by invoking the {@link #getServerTrustOptions()} method. * However, the trust anchor options returned by that method will only be added to the * given server options if its <em>ssl</em> flag is set to {@code true} and if its * <em>trustOptions</em> property is {@code null}. * * @param serverOptions The options to add configuration to. */ protected final void addTlsTrustOptions(final NetServerOptions serverOptions) { if (serverOptions.isSsl() && serverOptions.getTrustOptions() == null) { final TrustOptions trustOptions = getServerTrustOptions(); if (trustOptions != null) { serverOptions.setTrustOptions(trustOptions).setClientAuth(ClientAuth.REQUEST); LOG.info("enabling client authentication using certificates [{}]", trustOptions.getClass().getName()); } } }
/** * Adds TLS trust anchor configuration to a given set of server options. * <p> * The options for configuring the server side trust anchor are * determined by invoking the {@link #getServerTrustOptions()} method. * However, the trust anchor options returned by that method will only be added to the * given server options if its <em>ssl</em> flag is set to {@code true} and if its * <em>trustOptions</em> property is {@code null}. * * @param serverOptions The options to add configuration to. */ protected final void addTlsTrustOptions(final NetServerOptions serverOptions) { if (serverOptions.isSsl() && serverOptions.getTrustOptions() == null) { final TrustOptions trustOptions = getServerTrustOptions(); if (trustOptions != null) { serverOptions.setTrustOptions(trustOptions).setClientAuth(ClientAuth.REQUEST); LOG.info("enabling client authentication using certificates [{}]", trustOptions.getClass().getName()); } } }
public TCPSyslogServer(int port, String clientAuth, String trustStorePath, String trustStorePassword, String keyStorePath, String keyStorePassword, Async async){ this.port = port; this.async = async; nsOptions = new NetServerOptions() .setReuseAddress(true) .setHost("localhost") .setClientAuth(ClientAuth.valueOf(clientAuth)) .setTrustStoreOptions(trustStorePath != null? new JksOptions(). setPath(trustStorePath). setPassword(trustStorePassword): null) .setKeyStoreOptions(keyStorePath != null? new JksOptions(). setPath(keyStorePath). setPassword(keyStorePassword): null) .setSsl(true); }
opt.setSsl(true).setClientAuth(ClientAuth.REQUIRED) .setPemKeyCertOptions(new PemKeyCertOptions() .setKeyPath(ssl_cert_key)
public TCPSyslogServer(int port, String clientAuth, String trustStorePath, String trustStorePassword, String keyStorePath, String keyStorePassword, Async async){ this.port = port; this.async = async; nsOptions = new NetServerOptions() .setReuseAddress(true) .setHost("localhost") .setClientAuth(ClientAuth.valueOf(clientAuth)) .setTrustStoreOptions(trustStorePath != null? new JksOptions(). setPath(trustStorePath). setPassword(trustStorePassword): null) .setKeyStoreOptions(keyStorePath != null? new JksOptions(). setPath(keyStorePath). setPassword(keyStorePassword): null) .setSsl(true); }