jdk/src/java.base/share/classes/sun/security/ssl/Handshaker.java
changeset 27068 5fe2d67f5f68
parent 25859 3317bb8137f4
child 27804 4659e70271c4
equal deleted inserted replaced
27067:0e748d185207 27068:5fe2d67f5f68
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2014, 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
   355         if (conn != null) {
   355         if (conn != null) {
   356             return conn.getAcc();
   356             return conn.getAcc();
   357         } else {
   357         } else {
   358             return engine.getAcc();
   358             return engine.getAcc();
   359         }
   359         }
       
   360     }
       
   361 
       
   362     String getEndpointIdentificationAlgorithmSE() {
       
   363         SSLParameters paras;
       
   364         if (conn != null) {
       
   365             paras = conn.getSSLParameters();
       
   366         } else {
       
   367             paras = engine.getSSLParameters();
       
   368         }
       
   369 
       
   370         return paras.getEndpointIdentificationAlgorithm();
   360     }
   371     }
   361 
   372 
   362     private void setVersionSE(ProtocolVersion protocolVersion) {
   373     private void setVersionSE(ProtocolVersion protocolVersion) {
   363         if (conn != null) {
   374         if (conn != null) {
   364             conn.setVersion(protocolVersion);
   375             conn.setVersion(protocolVersion);