Package org.littleshoot.proxy

Source Code of org.littleshoot.proxy.MITMUsernamePasswordAuthenticatingProxyTest

package org.littleshoot.proxy;

import org.littleshoot.proxy.extras.SelfSignedMitmManager;

/**
* Tests a single proxy that requires username/password authentication and that
* uses MITM.
*/
public class MITMUsernamePasswordAuthenticatingProxyTest extends
        UsernamePasswordAuthenticatingProxyTest
        implements ProxyAuthenticator {
    @Override
    protected void setUp() {
        this.proxyServer = bootstrapProxy()
                .withPort(proxyServerPort)
                .withProxyAuthenticator(this)
                .withManInTheMiddle(new SelfSignedMitmManager())
                .start();
    }

    @Override
    protected boolean isMITM() {
        return true;
    }
}
TOP

Related Classes of org.littleshoot.proxy.MITMUsernamePasswordAuthenticatingProxyTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.