List of usage examples for io.vertx.core.net ClientOptionsBase setTrustAll
public ClientOptionsBase setTrustAll(boolean trustAll)
From source file:io.servicecomb.foundation.vertx.VertxTLSBuilder.java
License:Apache License
public static ClientOptionsBase buildClientOptionsBase(SSLOption sslOption, SSLCustom sslCustom, ClientOptionsBase clientOptionsBase) { buildTCPSSLOptions(sslOption, sslCustom, clientOptionsBase); if (sslOption.isAuthPeer()) { clientOptionsBase.setTrustAll(false); } else {//from ww w .j av a 2 s . c o m clientOptionsBase.setTrustAll(true); } return clientOptionsBase; }