Package org.apache.jmeter
Class ProxyAuthenticator
java.lang.Object
java.net.Authenticator
org.apache.jmeter.ProxyAuthenticator
Provides JMeter the ability to use proxy servers that require username and
 password.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.net.AuthenticatorAuthenticator.RequestorType
- 
Constructor SummaryConstructorsConstructorDescriptionProxyAuthenticator(String userName, String password) Create a ProxyAuthenticator with the specified username and password.
- 
Method SummaryModifier and TypeMethodDescriptionprotected PasswordAuthenticationReturn a PasswordAuthentication instance using the userName and password specified in the constructor.Methods inherited from class java.net.AuthenticatorgetDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
- 
Constructor Details- 
ProxyAuthenticatorCreate a ProxyAuthenticator with the specified username and password.- Parameters:
- userName- the username to authenticate with
- password- the password to authenticate with
 
 
- 
- 
Method Details- 
getPasswordAuthenticationReturn a PasswordAuthentication instance using the userName and password specified in the constructor. Only applies to PROXY request types.- Overrides:
- getPasswordAuthenticationin class- Authenticator
- Returns:
- a PasswordAuthentication instance to use for authenticating with the proxy
 
 
-