FileDocCategorySizeDatePackage
DefaultAuthenticator.javaAPI DocApache Axis 1.41893Sat Apr 22 18:57:28 BST 2006org.apache.axis.utils

DefaultAuthenticator

public class DefaultAuthenticator extends Authenticator
This class is used by WSDL2javaAntTask and WSDL2. Supports the http.proxyUser and http.proxyPassword properties.

Fields Summary
private org.apache.axis.components.net.TransportClientProperties
tcp
private String
user
private String
password
Constructors Summary
public DefaultAuthenticator(String user, String pass)


         
        this.user = user;
        this.password = pass;
    
Methods Summary
protected java.net.PasswordAuthenticationgetPasswordAuthentication()

        // if user and password weren't provided, check the system properties
        if (user == null) {
            user = getTransportClientProperties().getProxyUser();
        }
        if (password == null) {
            password = getTransportClientProperties().getProxyPassword();
        }
        return new java.net.PasswordAuthentication(user, password.toCharArray());
    
private org.apache.axis.components.net.TransportClientPropertiesgetTransportClientProperties()

        if (tcp == null) {
            tcp = TransportClientPropertiesFactory.create("http");
        }
        return tcp;