Java AtomicLong Accumulator getDefaultSSLProtocol()

Here you can find the source of getDefaultSSLProtocol()

Description

Retrieves the SSL protocol string that will be used by calls to #createSSLContext() that do not explicitly specify which protocol to use.

License

Open Source License

Return

The SSL protocol string that will be used by calls to create an SSL context that do not explicitly specify which protocol to use.

Declaration

public static String getDefaultSSLProtocol() 

Method Source Code

//package com.java2s;
/*//  ww w  .j  a  v a2s  .co 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.concurrent.atomic.AtomicReference;

public class Main {
    /**
     * The default protocol string that will be used to create SSL contexts when
     * no explicit protocol is specified.
     */
    private static final AtomicReference<String> DEFAULT_SSL_PROTOCOL = new AtomicReference<>("TLSv1");

    /**
     * Retrieves the SSL protocol string that will be used by calls to
     * {@link #createSSLContext()} that do not explicitly specify which protocol
     * to use.
     *
     * @return  The SSL protocol string that will be used by calls to create an
     *          SSL context that do not explicitly specify which protocol to use.
     */
    public static String getDefaultSSLProtocol() {
        return DEFAULT_SSL_PROTOCOL.get();
    }
}

Related

  1. addInlineCollectionToSqlString(StringBuilder sql, Collection values)
  2. calculateMemory()
  3. getEnabledSSLProtocols()
  4. getIncrement()
  5. min(List list)
  6. random()