src/java.base/share/classes/sun/security/ssl/ProtocolVersion.java
branchJDK-8145252-TLS13-branch
changeset 56573 4a53dd94403e
parent 56542 56aaa6cb3693
child 56714 2d7e08d730b6
equal deleted inserted replaced
56571:9dfdc35eb270 56573:4a53dd94403e
    78         };
    78         };
    79 
    79 
    80     // (D)TLS ProtocolVersion array for (D)TLS 1.2 and previous versions.
    80     // (D)TLS ProtocolVersion array for (D)TLS 1.2 and previous versions.
    81     static final ProtocolVersion[] PROTOCOLS_TO_12 = new ProtocolVersion[] {
    81     static final ProtocolVersion[] PROTOCOLS_TO_12 = new ProtocolVersion[] {
    82             TLS12, TLS11, TLS10, SSL30, DTLS12, DTLS10
    82             TLS12, TLS11, TLS10, SSL30, DTLS12, DTLS10
    83         };
    83     };
    84 
    84 
    85     // (D)TLS ProtocolVersion array for (D)TLS 1.3 and previous versions.
    85     // (D)TLS ProtocolVersion array for (D)TLS 1.3 and previous versions.
    86     static final ProtocolVersion[] PROTOCOLS_TO_13 = new ProtocolVersion[] {
    86     static final ProtocolVersion[] PROTOCOLS_TO_13 = new ProtocolVersion[] {
    87             TLS13, TLS12, TLS11, TLS10, SSL30, DTLS13, DTLS12, DTLS10
    87             TLS13, TLS12, TLS11, TLS10, SSL30, DTLS13, DTLS12, DTLS10
    88         };
    88         };
   129 
   129 
   130     // (D)TLS ProtocolVersion array for TSL 1.0/1.1/1.2 and DTLS 1.0/1.2.
   130     // (D)TLS ProtocolVersion array for TSL 1.0/1.1/1.2 and DTLS 1.0/1.2.
   131     static final ProtocolVersion[] PROTOCOLS_10_12 = new ProtocolVersion[] {
   131     static final ProtocolVersion[] PROTOCOLS_10_12 = new ProtocolVersion[] {
   132             TLS12, TLS11, TLS10, DTLS12, DTLS10
   132             TLS12, TLS11, TLS10, DTLS12, DTLS10
   133         };
   133         };
       
   134 
       
   135     // TLS ProtocolVersion array for TLS 1.2 and previous versions.
       
   136     static final ProtocolVersion[] PROTOCOLS_TO_T12 = new ProtocolVersion[] {
       
   137             TLS12, TLS11, TLS10, SSL30
       
   138     };
       
   139 
       
   140     // TLS ProtocolVersion array for TLS 1.1 and previous versions.
       
   141     static final ProtocolVersion[] PROTOCOLS_TO_T11 = new ProtocolVersion[] {
       
   142             TLS11, TLS10, SSL30
       
   143     };
       
   144 
       
   145     // TLS ProtocolVersion array for TLS 1.0 and previous versions.
       
   146     static final ProtocolVersion[] PROTOCOLS_TO_T10 = new ProtocolVersion[] {
       
   147             TLS10, SSL30
       
   148     };
   134 
   149 
   135     // Empty ProtocolVersion array
   150     // Empty ProtocolVersion array
   136     static final ProtocolVersion[] PROTOCOLS_EMPTY = new ProtocolVersion[0];
   151     static final ProtocolVersion[] PROTOCOLS_EMPTY = new ProtocolVersion[0];
   137 
   152 
   138     private ProtocolVersion(int id, String name, boolean isDTLS) {
   153     private ProtocolVersion(int id, String name, boolean isDTLS) {