< prev index next >

src/java.base/share/classes/sun/security/ssl/SSLHandshake.java

Print this page


   1 /*
   2  * Copyright (c) 2006, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  98 
  99     @SuppressWarnings({"unchecked", "rawtypes"})
 100     HELLO_VERIFY_REQUEST        ((byte)0x03, "hello_verify_request",
 101         (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] {
 102             new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>(
 103                 HelloVerifyRequest.handshakeConsumer,
 104                 ProtocolVersion.PROTOCOLS_TO_12
 105             )
 106         }),
 107         (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] {
 108             new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>(
 109                 HelloVerifyRequest.handshakeProducer,
 110                 ProtocolVersion.PROTOCOLS_TO_12
 111             )
 112         })),
 113 
 114     @SuppressWarnings({"unchecked", "rawtypes"})
 115     NEW_SESSION_TICKET          ((byte)0x04, "new_session_ticket",
 116         (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] {
 117             new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>(
 118                  NewSessionTicket.handshake12Consumer,
 119                  ProtocolVersion.PROTOCOLS_TO_12
 120             ),
 121             new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>(
 122                  NewSessionTicket.handshakeConsumer,
 123                  ProtocolVersion.PROTOCOLS_OF_13
 124             )
 125         }),
 126         (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] {
 127             new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>(
 128                  NewSessionTicket.handshake12Producer,
 129                  ProtocolVersion.PROTOCOLS_TO_12
 130             )
 131         })),
 132     END_OF_EARLY_DATA           ((byte)0x05, "end_of_early_data"),
 133 
 134     @SuppressWarnings({"unchecked", "rawtypes"})
 135     ENCRYPTED_EXTENSIONS        ((byte)0x08, "encrypted_extensions",
 136         (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] {
 137             new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>(
 138                 EncryptedExtensions.handshakeConsumer,
 139                 ProtocolVersion.PROTOCOLS_OF_13
 140             )
 141         }),
 142         (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] {
 143             new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>(
 144                 EncryptedExtensions.handshakeProducer,
 145                 ProtocolVersion.PROTOCOLS_OF_13
 146             )
 147         })),
 148 
 149     @SuppressWarnings({"unchecked", "rawtypes"})
 150     CERTIFICATE                 ((byte)0x0B, "certificate",


   1 /*
   2  * Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  98 
  99     @SuppressWarnings({"unchecked", "rawtypes"})
 100     HELLO_VERIFY_REQUEST        ((byte)0x03, "hello_verify_request",
 101         (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] {
 102             new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>(
 103                 HelloVerifyRequest.handshakeConsumer,
 104                 ProtocolVersion.PROTOCOLS_TO_12
 105             )
 106         }),
 107         (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] {
 108             new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>(
 109                 HelloVerifyRequest.handshakeProducer,
 110                 ProtocolVersion.PROTOCOLS_TO_12
 111             )
 112         })),
 113 
 114     @SuppressWarnings({"unchecked", "rawtypes"})
 115     NEW_SESSION_TICKET          ((byte)0x04, "new_session_ticket",
 116         (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] {
 117             new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>(
 118                 NewSessionTicket.handshakeConsumer,
 119                 ProtocolVersion.PROTOCOLS_OF_13
 120         )




 121         }),
 122         (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] {
 123             new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>(
 124                 NewSessionTicket.handshakeProducer,
 125                 ProtocolVersion.PROTOCOLS_OF_13
 126         )
 127         })),
 128     END_OF_EARLY_DATA           ((byte)0x05, "end_of_early_data"),
 129 
 130     @SuppressWarnings({"unchecked", "rawtypes"})
 131     ENCRYPTED_EXTENSIONS        ((byte)0x08, "encrypted_extensions",
 132         (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] {
 133             new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>(
 134                 EncryptedExtensions.handshakeConsumer,
 135                 ProtocolVersion.PROTOCOLS_OF_13
 136             )
 137         }),
 138         (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] {
 139             new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>(
 140                 EncryptedExtensions.handshakeProducer,
 141                 ProtocolVersion.PROTOCOLS_OF_13
 142             )
 143         })),
 144 
 145     @SuppressWarnings({"unchecked", "rawtypes"})
 146     CERTIFICATE                 ((byte)0x0B, "certificate",


< prev index next >