Example usage for javax.rmi.ssl SslRMIServerSocketFactory getNeedClientAuth

List of usage examples for javax.rmi.ssl SslRMIServerSocketFactory getNeedClientAuth

Introduction

In this page you can find the example usage for javax.rmi.ssl SslRMIServerSocketFactory getNeedClientAuth.

Prototype

public final boolean getNeedClientAuth() 

Source Link

Document

Returns true if client authentication is required on SSL connections accepted by server sockets created by this factory.

Usage

From source file:org.apache.cassandra.utils.JMXServerUtils.java

private static void logJmxSslConfig(SslRMIServerSocketFactory serverFactory) {
    logger.debug("JMX SSL configuration. { protocols: [{}], cipher_suites: [{}], require_client_auth: {} }",
            serverFactory.getEnabledProtocols() == null ? "'JVM defaults'"
                    : Arrays.stream(serverFactory.getEnabledProtocols()).collect(
                            Collectors.joining("','", "'", "'")),
            serverFactory.getEnabledCipherSuites() == null ? "'JVM defaults'"
                    : Arrays.stream(serverFactory.getEnabledCipherSuites())
                            .collect(Collectors.joining("','", "'", "'")),
            serverFactory.getNeedClientAuth());
}