Here you can find the source of getEnabledSSLProtocols()
public static Set<String> getEnabledSSLProtocols()
//package com.java2s; /*/*from w w w. j a v a2 s . c o m*/ * Copyright (C) 2008-2018 Ping Identity Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License (GPLv2 only) * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses>. */ import java.util.Set; import java.util.concurrent.atomic.AtomicReference; public class Main { /** * The default set of SSL protocols that will be enabled for use if available * for SSL sockets created within the LDAP SDK. */ private static final AtomicReference<Set<String>> ENABLED_SSL_PROTOCOLS = new AtomicReference<>(); /** * Retrieves the set of SSL protocols that will be enabled for use, if * available, for SSL sockets created within the LDAP SDK. * * @return The set of SSL protocols that will be enabled for use, if * available, for SSL sockets created within the LDAP SDK. */ public static Set<String> getEnabledSSLProtocols() { return ENABLED_SSL_PROTOCOLS.get(); } }