ClientOptionsBase.setTrustAll
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using io.vertx.core.net.ClientOptionsBase.setTrustAll (Showing top 12 results out of 315)

origin: eclipse-vertx/vert.x

@Override
public HttpClientOptions setTrustAll(boolean trustAll) {
 super.setTrustAll(trustAll);
 return this;
}
origin: eclipse-vertx/vert.x

@Override
public NetClientOptions setTrustAll(boolean trustAll) {
 super.setTrustAll(trustAll);
 return this;
}
origin: eclipse-vertx/vert.x

case "trustAll":
 if (member.getValue() instanceof Boolean) {
  obj.setTrustAll((Boolean)member.getValue());
origin: io.vertx/vertx-core

@Override
public NetClientOptions setTrustAll(boolean trustAll) {
 super.setTrustAll(trustAll);
 return this;
}
origin: io.vertx/vertx-core

@Override
public HttpClientOptions setTrustAll(boolean trustAll) {
 super.setTrustAll(trustAll);
 return this;
}
origin: apache/servicecomb-java-chassis

public static ClientOptionsBase buildClientOptionsBase(SSLOption sslOption, SSLCustom sslCustom,
  ClientOptionsBase clientOptionsBase) {
 buildTCPSSLOptions(sslOption, sslCustom, clientOptionsBase);
 if (sslOption.isAuthPeer()) {
  clientOptionsBase.setTrustAll(false);
 } else {
  clientOptionsBase.setTrustAll(true);
 }
 return clientOptionsBase;
}
origin: io.vertx/vertx-core

case "trustAll":
 if (member.getValue() instanceof Boolean) {
  obj.setTrustAll((Boolean)member.getValue());
origin: io.servicecomb/foundation-vertx

public static ClientOptionsBase buildClientOptionsBase(SSLOption sslOption, SSLCustom sslCustom,
  ClientOptionsBase clientOptionsBase) {
 buildTCPSSLOptions(sslOption, sslCustom, clientOptionsBase);
 if (sslOption.isAuthPeer()) {
  clientOptionsBase.setTrustAll(false);
 } else {
  clientOptionsBase.setTrustAll(true);
 }
 return clientOptionsBase;
}
origin: org.apache.servicecomb/foundation-vertx

public static ClientOptionsBase buildClientOptionsBase(SSLOption sslOption, SSLCustom sslCustom,
  ClientOptionsBase clientOptionsBase) {
 buildTCPSSLOptions(sslOption, sslCustom, clientOptionsBase);
 if (sslOption.isAuthPeer()) {
  clientOptionsBase.setTrustAll(false);
 } else {
  clientOptionsBase.setTrustAll(true);
 }
 return clientOptionsBase;
}
origin: io.vertx/vertx-grpc

@Test
public void testTrustAll(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")), ctx, true);
}
origin: io.vertx/vertx-grpc

@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);
}
origin: io.vertx/vertx-grpc

@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);
}
io.vertx.core.netClientOptionsBasesetTrustAll

Javadoc

Set whether all server certificates should be trusted

Popular methods of ClientOptionsBase

  • setSsl
  • setUseAlpn
  • setTrustStoreOptions
  • setKeyStoreOptions
  • setOpenSslEngineOptions
  • setPemTrustOptions
  • addCrlPath
  • addCrlValue
  • addEnabledCipherSuite
  • addEnabledSecureTransportProtocol
  • equals
  • getConnectTimeout
  • equals,
  • getConnectTimeout,
  • getLocalAddress,
  • getMetricsName,
  • getProxyOptions,
  • getReceiveBufferSize,
  • getSendBufferSize,
  • getSoLinger,
  • getTrafficClass

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)