Example usage for javax.rmi.ssl SslRMIServerSocketFactory getEnabledProtocols

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

Introduction

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

Prototype

public final String[] getEnabledProtocols() 

Source Link

Document

Returns the names of the protocol versions enabled on SSL connections accepted by server sockets created by this factory, or null if this factory uses the protocol versions that are enabled by default.

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