jdk/src/java.base/share/classes/sun/security/ssl/ServerNameExtension.java
changeset 32649 2ee9017c7597
parent 25859 3317bb8137f4
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    66  */
    66  */
    67 final class ServerNameExtension extends HelloExtension {
    67 final class ServerNameExtension extends HelloExtension {
    68 
    68 
    69     // For backward compatibility, all future data structures associated with
    69     // For backward compatibility, all future data structures associated with
    70     // new NameTypes MUST begin with a 16-bit length field.
    70     // new NameTypes MUST begin with a 16-bit length field.
    71     final static int NAME_HEADER_LENGTH = 3;    // NameType: 1 byte
    71     static final int NAME_HEADER_LENGTH = 3;    // NameType: 1 byte
    72                                                 // Name length: 2 bytes
    72                                                 // Name length: 2 bytes
    73     private Map<Integer, SNIServerName> sniMap;
    73     private Map<Integer, SNIServerName> sniMap;
    74     private int listLength;     // ServerNameList length
    74     private int listLength;     // ServerNameList length
    75 
    75 
    76     // constructor for ServerHello
    76     // constructor for ServerHello