org.littleshoot.proxy
Interface MitmManager

All Known Implementing Classes:
SelfSignedMitmManager

public interface MitmManager

MITMManagers encapsulate the logic required for letting LittleProxy act as a man in the middle for HTTPS requests.


Method Summary
 SSLEngine clientSslEngineFor(SSLSession serverSslSession)
           Creates an SSLEngine for encrypting the client connection based on the given serverSslSession.
 SSLEngine serverSslEngine()
          Creates an SSLEngine for encrypting the server connection.
 

Method Detail

serverSslEngine

SSLEngine serverSslEngine()
Creates an SSLEngine for encrypting the server connection.

Returns:

clientSslEngineFor

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.

Parameters:
serverSslSession - the SSLSession that's been established with the server
Returns:


Copyright © 2009-2014 LittleShoot. All Rights Reserved.