All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.littleshoot.proxy.SslEngineSource Maven / Gradle / Ivy

Go to download

LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.

The newest version!
package org.littleshoot.proxy;

import javax.net.ssl.SSLEngine;

/**
 * Source for {@link SSLEngine}s.
 */
public interface SslEngineSource {

    /**
     * Returns an {@link SSLEngine} to use for a server connection from
     * LittleProxy to the client.
     * 
     * @return
     */
    SSLEngine newSslEngine();

    /**
     * Returns an {@link SSLEngine} to use for a client connection from
     * LittleProxy to the upstream server. *
     * 
     * Note: Peer information is needed to send the server_name extension in
     * handshake with Server Name Indication (SNI).
     * 
     * @param peerHost
     *            to start a client connection to the server.
     * @param peerPort
     *            to start a client connection to the server.
     * @return
     */
    SSLEngine newSslEngine(String peerHost, int peerPort);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy