Example usage for javax.rmi.ssl SslRMIServerSocketFactory getEnabledCipherSuites

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

Introduction

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

Prototype

public final String[] getEnabledCipherSuites() 

Source Link

Document

Returns the names of the cipher suites enabled on SSL connections accepted by server sockets created by this factory, or null if this factory uses the cipher suites 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());
}