You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Apache Wiki <wi...@apache.org> on 2007/06/22 08:28:21 UTC
[Jakarta-commons Wiki] Update of "Net/FrequentlyAskedQuestions" by
ThorstenScherler
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