Interface TlsSocketStrategy
- All Known Implementing Classes:
AbstractClientTlsStrategy, DefaultClientTlsStrategy, SpkiPinningClientTlsStrategy
@Contract(threading=STATELESS)
public interface TlsSocketStrategy
TLS protocol upgrade strategy for blocking
Sockets.- Since:
- 5.4
-
Method Summary
-
Method Details
-
upgrade
SSLSocket upgrade(Socket socket, String target, int port, Object attachment, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException Upgrades the given plain socket and executes the TLS handshake over it.- Parameters:
socket- the existing plain sockettarget- the name of the target host.port- the port to connect to on the target host.attachment- connect request attachment.context- the actual HTTP context.- Returns:
- socket upgraded to TLS.
- Throws:
IOException
-