--- old/src/java.base/share/classes/sun/security/ssl/ProtocolVersion.java 2018-05-22 17:08:41.958345805 -0300 +++ new/src/java.base/share/classes/sun/security/ssl/ProtocolVersion.java 2018-05-22 17:08:41.833345709 -0300 @@ -66,29 +66,43 @@ static final ProtocolVersion SSL20Hello = new ProtocolVersion(0x0002, "SSLv2Hello"); - // SSL 3.0 - static final ProtocolVersion SSL30 = new ProtocolVersion(0x0300, "SSLv3"); - - // TLS 1.0 - static final ProtocolVersion TLS10 = new ProtocolVersion(0x0301, "TLSv1"); - - // TLS 1.1 - static final ProtocolVersion TLS11 = new ProtocolVersion(0x0302, "TLSv1.1"); - - // TLS 1.2 - static final ProtocolVersion TLS12 = new ProtocolVersion(0x0303, "TLSv1.2"); - - // DTLS 1.0 - // {254, 255}, the version value of DTLS 1.0. - static final ProtocolVersion DTLS10 = + /** + * SSL 3.0 + */ + public static final ProtocolVersion SSL30 = new ProtocolVersion(0x0300, "SSLv3"); + + /** + * TLS 1.0 + */ + public static final ProtocolVersion TLS10 = new ProtocolVersion(0x0301, "TLSv1"); + + /** + * TLS 1.1 + */ + public static final ProtocolVersion TLS11 = new ProtocolVersion(0x0302, "TLSv1.1"); + + /** + * TLS 1.2 + */ + public static final ProtocolVersion TLS12 = new ProtocolVersion(0x0303, "TLSv1.2"); + + /** + * DTLS 1.0 + * + * {254, 255}, the version value of DTLS 1.0. + */ + public static final ProtocolVersion DTLS10 = new ProtocolVersion(0xFEFF, "DTLSv1.0"); // No DTLS 1.1, that version number was skipped in order to harmonize // version numbers with TLS. - // DTLS 1.2 - // {254, 253}, the version value of DTLS 1.2. - static final ProtocolVersion DTLS12 = + /** + * DTLS 1.2 + * + * {254, 253}, the version value of DTLS 1.2. + */ + public static final ProtocolVersion DTLS12 = new ProtocolVersion(0xFEFD, "DTLSv1.2"); private static final boolean FIPS = SunJSSE.isFIPS();