Yes. We have already done the test, and it worked. 
We're currently using j2sdk 1.4.2_01, JBoss 3.2.3, and for the test we needed to setup 
the default authenticator. Then it works.
Here's the simple client application code. You can see we are using a 
ProxyAuthenticator, wich is our own implementation of the java.net.Authenticator, were 
we override the getPassword(), returning the password passed in the class constructor.


  | package com.primary.test;
  | 
  | import java.io.*;
  | import java.net.Authenticator;
  | import java.net.URL;
  | import com.primary.common.communications.ProxyAuthenticator;
  | 
  | class TestHTTPAuth {
  |    public static void main(String args[]) throws IOException {
  | 
  |        System.setProperty("https.auth.digest.validateServer", "true");
  |        System.setProperty("https.auth.digest.validateProxy", "true");
  |        System.setProperty("https.proxyHost", "192.168.7.4");
  |        System.setProperty("https.proxyPort", "3128");
  |        System.setProperty("https.nonProxyHosts", "");
  |        Authenticator.setDefault(new ProxyAuthenticator("jero", "jero"));
  |        
  |        
  |        for (int i = 0; i < args.length; i++) {          
  |            URL url = new URL(args);
  |            InputStream is = url.openStream();
  |            Reader stream = new InputStreamReader(is);
  |            int c;
  |            while ((c = stream.read()) != -1)
  |                System.out.print((char) c);
  |        }
  |        System.exit(0);
  |    }
  | 
  | }
  | 

We removed the "https.proxyUser" and "https.proxyPassword" properties, because they 
made no effect on the results. For the test, we used the "https://www.yahoo.com"; 
address, and using the "-Djavax.net.debug=all" property, we saw it worked fine.

We debugged the client code, and it steps into the ProxyAuthenticator getPassword() 
method. But using the SAME code in the JBoss client, it does not step int that method.
Maybe this can help. 
It would be useful if we could change the JMS connection sockets properties, like the 
authentication (or am I wrong with all this supposition?)
Thanks a lot,
     Marcelo.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831445#3831445

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831445


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to