@Contract(threading=STATELESS) public interface TlsSocketStrategy
Sockets.| Modifier and Type | Method and Description |
|---|---|
SSLSocket |
upgrade(Socket socket,
String target,
int port,
Object attachment,
HttpContext context)
Upgrades the given plain socket and executes the TLS handshake over it.
|
SSLSocket upgrade(Socket socket, String target, int port, Object attachment, HttpContext context) throws IOException
socket - the existing plain sockettarget - the name of the target host.port - the port to connect to on the target host.context - the actual HTTP context.attachment - connect request attachment.IOExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.