Achim Grolms
2005-02-07 09:45:10 UTC
Hello,
I am Using Apache SOAP to access Webservers that require HTTP 401
Authentication.
From my point of view it is a good idea to let java.net.Authenticator
do the work of asking the User for credentials.
Benefit 1: via java.net.Authenticator org.apache.soap.util.net.HTTPUtils
can not only use Basic auth but also NTLM, Kerberos an everything
the underlying JRE provides through java.net.Authenticator.
Benefit 2: The Proxy configuration of underlying JRE is used.
In Implematation of org.apache.soap.util.net.HTTPUtils
that means switch using of java.lang.Socket
to using of java.lang.URLConnection, because that anables the
Software to use the credentials of java.net.Authenticator.
Find attached my "first shot" Reimplementation of
org.apache.soap.util.net.HTTPUtils that works for me
as a "plugin replacement".
Do you think that is a good idea?
Thank you,
Achim
I am Using Apache SOAP to access Webservers that require HTTP 401
Authentication.
From my point of view it is a good idea to let java.net.Authenticator
do the work of asking the User for credentials.
Benefit 1: via java.net.Authenticator org.apache.soap.util.net.HTTPUtils
can not only use Basic auth but also NTLM, Kerberos an everything
the underlying JRE provides through java.net.Authenticator.
Benefit 2: The Proxy configuration of underlying JRE is used.
In Implematation of org.apache.soap.util.net.HTTPUtils
that means switch using of java.lang.Socket
to using of java.lang.URLConnection, because that anables the
Software to use the credentials of java.net.Authenticator.
Find attached my "first shot" Reimplementation of
org.apache.soap.util.net.HTTPUtils that works for me
as a "plugin replacement".
Do you think that is a good idea?
Thank you,
Achim