![](/img/trans.png)
[英]Using com.sun.net.httpserver.HttpsServer - how to specify protocol?
[英]How to get the ssl session when using the sun HttpsServer
我使用com.sun.net.httpserver.HttpsServer
作為Https服務器,並希望訪問SSL會話。
我在HttpHandler
處理請求。 當使用普通的SSLServerSocket
我可以通過SSLSocket.getSession(...)
方法訪問客戶端證書等,但是我在HttpHandler
里面的handle
方法的HttpExchange
參數中找不到這樣的東西。
有沒有辦法訪問它?
將HttpExchange
轉換為HttpsExchange
並從中獲取SSLSession
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.