commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-commons Wiki] Update of "Net/FrequentlyAskedQuestions" by ThorstenScherler
Date Fri, 22 Jun 2007 06:28:21 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification.

The following page has been changed by ThorstenScherler:
http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions

The comment on the change is:
Adding note about SOCKS Authenticator

------------------------------------------------------------------------------
  http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html
  </pre>
  
+ In addition if you need to identify with the SOCKS server, use something like:
+ {{{
+ import java.net.Authenticator;
+ import java.net.PasswordAuthentication;
+ 
+ public class Auth extends Authenticator {
+   protected PasswordAuthentication getPasswordAuthentication() {
+     return new PasswordAuthentication(user, pass
+         .toCharArray());
+   }
+ }
+ }}}
+ 
  ----
  '''Q: What's the point of the SMTP and POP3 packages when !JavaMail provides more functionality?'''
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message