public interface MitmManager
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
clientSslEngineFor(SSLSession serverSslSession)
Creates an
SSLEngine for encrypting the client connection based
on the given serverSslSession. |
SSLEngine |
serverSslEngine(String peerHost,
int peerPort)
Creates an
SSLEngine for encrypting the server connection. |
SSLEngine serverSslEngine(String peerHost, int peerPort)
SSLEngine for encrypting the server connection.
Note: Peer information is needed to send the server_name extension in
handshake with Server Name Indication (SNI).peerHost - to start a client connection to the server.peerPort - to start a client connection to the server.SSLEngine clientSslEngineFor(SSLSession serverSslSession)
Creates an SSLEngine for encrypting the client connection based
on the given serverSslSession.
The serverSslSession is provided in case this method needs to inspect the server's certificates or something else about the encryption on the way to the server.
This is the place where one would implement impersonation of the server by issuing replacement certificates signed by the proxy's own certificate.
serverSslSession - the SSLSession that's been established with the serverCopyright © 2009–2015 LittleShoot. All rights reserved.