Class ProxyAuthenticator


  • public class ProxyAuthenticator
    extends Authenticator
    Provides JMeter the ability to use proxy servers that require username and password.
    Version:
    $Revision: 937726 $
    • Constructor Detail

      • 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 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 class Authenticator
        Returns:
        a PasswordAuthentication instance to use for authenticating with the proxy