Example usage for io.vertx.core.http ClientAuth REQUEST

List of usage examples for io.vertx.core.http ClientAuth REQUEST

Introduction

In this page you can find the example usage for io.vertx.core.http ClientAuth REQUEST.

Prototype

ClientAuth REQUEST

To view the source code for io.vertx.core.http ClientAuth REQUEST.

Click Source Link

Document

Accept authentication if presented by client.

Usage

From source file:io.servicecomb.foundation.vertx.VertxTLSBuilder.java

License:Apache License

public static NetServerOptions buildNetServerOptions(SSLOption sslOption, SSLCustom sslCustom,
        NetServerOptions netServerOptions) {
    buildTCPSSLOptions(sslOption, sslCustom, netServerOptions);
    if (sslOption.isAuthPeer()) {
        netServerOptions.setClientAuth(ClientAuth.REQUIRED);
    } else {// w  ww  . java2 s. c o  m
        netServerOptions.setClientAuth(ClientAuth.REQUEST);
    }
    return netServerOptions;
}