Matt Carless [http://community.jboss.org/people/mnccouk] created the discussion

"Re: SSL calls thru a proxy with authentication?"

To view the discussion, visit: http://community.jboss.org/message/563545#563545

--------------------------------------------------------------
I would also like to know how to connect jboss through a proxy that requires 
authentication.
I have tried

java.net.Authenticator.setDefault(new ProxyAuthenticator("user", "pass"));
           System.setProperty("http.proxySet", "true");
           System.setProperty("http.proxyHost", "proxy");  
           System.setProperty("http.proxyPort", "8080");

with  this authenticator
import java.net.PasswordAuthentication;

public class ProxyAuthenticator extends java.net.Authenticator{

      private String user, password;  
       
         public ProxyAuthenticator(String user, String password) {  
             this.user = user;  
             this.password = password;  
         }  
       
         protected PasswordAuthentication getPasswordAuthentication() {  
             return new PasswordAuthentication(user, password.toCharArray());  
         }  
}

and I receoive a HTTP 407 proxyauthentication error.

The reason I need to do this is to access an external webservice from within a 
jboss app.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/563545#563545]

Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to