@Contract(threading=STATELESS)
public interface TlsSocketStrategy
Socket
s.Modifier and Type | Method and Description |
---|---|
SSLSocket |
upgrade(Socket socket,
String target,
int port,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context)
Upgrades the given plain socket and executes the TLS handshake over it.
|
SSLSocket upgrade(Socket socket, String target, int port, Object attachment, org.apache.hc.core5.http.protocol.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.IOException
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.