Example usage for io.vertx.core.net ClientOptionsBase setTrustAll

List of usage examples for io.vertx.core.net ClientOptionsBase setTrustAll

Introduction

In this page you can find the example usage for io.vertx.core.net ClientOptionsBase setTrustAll.

Prototype

public ClientOptionsBase setTrustAll(boolean trustAll) 

Source Link

Document

Set whether all server certificates should be trusted

Usage

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;
}