View Javadoc
1   /*
2    * Copyright 2021 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   https://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty.handler.ssl;
17  
18  /**
19   * SSL/TLS protocols
20   */
21  public final class SslProtocols {
22  
23      /**
24       * SSL v2 Hello
25       *
26       * @deprecated SSLv2Hello is no longer secure. Consider using {@link #TLS_v1_2} or {@link #TLS_v1_3}
27       */
28      @Deprecated
29      public static final String SSL_v2_HELLO = "SSLv2Hello";
30  
31      /**
32       * SSL v2
33       *
34       * @deprecated SSLv2 is no longer secure. Consider using {@link #TLS_v1_2} or {@link #TLS_v1_3}
35       */
36      @Deprecated
37      public static final String SSL_v2 = "SSLv2";
38  
39      /**
40       * SSLv3
41       *
42       * @deprecated SSLv3 is no longer secure. Consider using {@link #TLS_v1_2} or {@link #TLS_v1_3}
43       */
44      @Deprecated
45      public static final String SSL_v3 = "SSLv3";
46  
47      /**
48       * TLS v1
49       *
50       * @deprecated TLSv1 is no longer secure. Consider using {@link #TLS_v1_2} or {@link #TLS_v1_3}
51       */
52      @Deprecated
53      public static final String TLS_v1 = "TLSv1";
54  
55      /**
56       * TLS v1.1
57       *
58       * @deprecated TLSv1.1 is no longer secure. Consider using {@link #TLS_v1_2} or {@link #TLS_v1_3}
59       */
60      @Deprecated
61      public static final String TLS_v1_1 = "TLSv1.1";
62  
63      /**
64       * TLS v1.2
65       */
66      public static final String TLS_v1_2 = "TLSv1.2";
67  
68      /**
69       * TLS v1.3
70       */
71      public static final String TLS_v1_3 = "TLSv1.3";
72  
73      private SslProtocols() {
74          // Prevent outside initialization
75      }
76  }