public String getServerName() {
String ret = serverName;
if (sslEngine != null && sslEngine.getSession() != null) {
SSLSession session = sslEngine.getSession();
if (session instanceof ExtendedSSLSession) {
ExtendedSSLSession es = (ExtendedSSLSession) session;
for (SNIServerName sni : es.getRequestedServerNames()) {
SNIHostName hn = new SNIHostName(sni.getEncoded());
ret = hn.getAsciiName();
break;
}
}
}
LOG.log("HS DONE, servername is " + ret);
return ret;
}
SecureConnection.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:avatar-js
作者:
评论列表
文章目录