1 /* |
1 /* |
2 * Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved. |
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. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
113 |
113 |
114 @SuppressWarnings({"unchecked", "rawtypes"}) |
114 @SuppressWarnings({"unchecked", "rawtypes"}) |
115 NEW_SESSION_TICKET ((byte)0x04, "new_session_ticket", |
115 NEW_SESSION_TICKET ((byte)0x04, "new_session_ticket", |
116 (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] { |
116 (Map.Entry<SSLConsumer, ProtocolVersion[]>[])(new Map.Entry[] { |
117 new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>( |
117 new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>( |
118 NewSessionTicket.handshakeConsumer, |
118 NewSessionTicket.handshake12Consumer, |
119 ProtocolVersion.PROTOCOLS_OF_13 |
119 ProtocolVersion.PROTOCOLS_TO_12 |
120 ) |
120 ), |
121 }), |
121 new SimpleImmutableEntry<SSLConsumer, ProtocolVersion[]>( |
122 (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] { |
122 NewSessionTicket.handshakeConsumer, |
123 new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>( |
123 ProtocolVersion.PROTOCOLS_OF_13 |
124 NewSessionTicket.handshakeProducer, |
124 ) |
125 ProtocolVersion.PROTOCOLS_OF_13 |
125 }), |
126 ) |
126 (Map.Entry<HandshakeProducer, ProtocolVersion[]>[])(new Map.Entry[] { |
|
127 new SimpleImmutableEntry<HandshakeProducer, ProtocolVersion[]>( |
|
128 NewSessionTicket.handshake12Producer, |
|
129 ProtocolVersion.PROTOCOLS_TO_12 |
|
130 ) |
127 })), |
131 })), |
128 END_OF_EARLY_DATA ((byte)0x05, "end_of_early_data"), |
132 END_OF_EARLY_DATA ((byte)0x05, "end_of_early_data"), |
129 |
133 |
130 @SuppressWarnings({"unchecked", "rawtypes"}) |
134 @SuppressWarnings({"unchecked", "rawtypes"}) |
131 ENCRYPTED_EXTENSIONS ((byte)0x08, "encrypted_extensions", |
135 ENCRYPTED_EXTENSIONS ((byte)0x08, "encrypted_extensions", |