org.apache.jmeter

Class ProxyAuthenticator


public class ProxyAuthenticator
extends Authenticator

Provides JMeter the ability to use proxy servers that require username and password.
Version:
$Revision: 674362 $

Constructor Summary

ProxyAuthenticator(String userName, String password)
Create a ProxyAuthenticator with the specified username and password.

Method Summary

protected PasswordAuthentication
getPasswordAuthentication()
Return a PasswordAuthentication instance using the userName and password specified in the constructor.

Constructor Details

ProxyAuthenticator

public ProxyAuthenticator(String userName,
                          String password)
Create a ProxyAuthenticator with the specified username and password.
Parameters:
userName - the username to authenticate with
password - the password to authenticate with

Method Details

getPasswordAuthentication

protected PasswordAuthentication getPasswordAuthentication()
Return a PasswordAuthentication instance using the userName and password specified in the constructor.
Returns:
a PasswordAuthentication instance to use for authenticating with the proxy

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.