Package org.apache.jmeter
Class ProxyAuthenticator
- java.lang.Object
-
- java.net.Authenticator
-
- org.apache.jmeter.ProxyAuthenticator
-
public class ProxyAuthenticator extends Authenticator
Provides JMeter the ability to use proxy servers that require username and password.- Version:
- $Revision: 937726 $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType
-
-
Constructor Summary
Constructors Constructor Description ProxyAuthenticator(String userName, String password)
Create a ProxyAuthenticator with the specified username and password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PasswordAuthentication
getPasswordAuthentication()
Return a PasswordAuthentication instance using the userName and password specified in the constructor.-
Methods inherited from class java.net.Authenticator
getDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
-
-
-
-
Method Detail
-
getPasswordAuthentication
protected PasswordAuthentication getPasswordAuthentication()
Return a PasswordAuthentication instance using the userName and password specified in the constructor. Only applies to PROXY request types.- Overrides:
getPasswordAuthentication
in classAuthenticator
- Returns:
- a PasswordAuthentication instance to use for authenticating with the proxy
-
-