2998N/A * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Type safe enum for an SSL/TLS protocol version. Instances are obtained 0N/A * using the static factory methods or by referencing the static members 0N/A * in this class. Member variables are final and can be accessed without 0N/A * There is only ever one instance per supported protocol version, this 0N/A * means == can be used for comparision instead of equals() if desired. 0N/A * Checks for a particular version number should generally take this form: 0N/A * if (protocolVersion.v >= ProtocolVersion.TLS10) { 0N/A * // TLS 1.0 code goes here 0N/A * // SSL 3.0 code here 0N/A * @author Andreas Sterbenz 2998N/A // The limit of maximum protocol version 3002N/A // The limit of minimum protocol version 2998N/A // Dummy protocol version value for invalid SSLSession 0N/A // If enabled, send/ accept SSLv2 hello messages 0N/A // minimum version we implement (SSL 3.0) 3002N/A // maximum version we implement (TLS 1.2) 0N/A // ProtocolVersion to use by default (TLS 1.0) 0N/A // Default version for hello messages (SSLv2Hello) 0N/A // version in 16 bit MSB format as it appears in records and 0N/A // messages, i.e. 0x0301 for TLS 1.0 0N/A // major and minor version 0N/A // name used in JSSE (e.g. TLSv1 for TLS 1.0) 0N/A * Return a ProtocolVersion with the specified major and minor version 0N/A * numbers. Never throws exceptions. 0N/A * Return a ProtocolVersion for the given name. 0N/A * @exception IllegalArgumentException if name is null or does not 0N/A * identify a supported protocol 2998N/A (
"Only TLS 1.0 or later allowed in FIPS mode");
2998N/A * Compares this object with the specified object for order.