You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Alden, John" <Jo...@LibertyMutual.com> on 2003/01/16 00:00:50 UTC
SSL and BasicAuth Example
I am looking to use the http-client because of its ability to set a
timeout parameter. Can someone share an example of using http-client
with SSL and Basic Authorization? I was unable to find such an example
on the Jakarta site.
Thanks in advance.
John
Re: SSL and BasicAuth Example
Posted by Ortwin Glück <or...@nose.ch>.
Michael Becke wrote:
> Agreed. The part I believe that is not required (in 1.3.1 or 1.4) is
> the setting of the "java.protocol.handler.pkgs" property. This property
> is only used by the default URLStreamHandlerFactory to handle URLs with
> the protocol of "https".
>
> Mike
Ah I get it. I wasn't aware of that. I can change this.
Re: SSL and BasicAuth Example
Posted by Michael Becke <be...@u.washington.edu>.
Agreed. The part I believe that is not required (in 1.3.1 or 1.4) is
the setting of the "java.protocol.handler.pkgs" property. This property
is only used by the default URLStreamHandlerFactory to handle URLs with
the protocol of "https".
Mike
Ortwin Glück wrote:
> Michael Becke wrote:
> > The default HTTPS protocol class uses the SSLSocketFactory
>
> ... whose implementation is provided by JSSE.
>
> With JDK 1.4 however JSSE is already part of the distribution.
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
Re: SSL and BasicAuth Example
Posted by Ortwin Glück <or...@nose.ch>.
Michael Becke wrote:
> The default HTTPS protocol class uses the SSLSocketFactory
... whose implementation is provided by JSSE.
With JDK 1.4 however JSSE is already part of the distribution.
Re: SSL and BasicAuth Example
Posted by Michael Becke <be...@u.washington.edu>.
You're welcome.
I noticed the following line in the class documentation:
You need to have JSSE on your classpath and set the System property
java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
With the current Protocol configuration JSSE does need to be on the
classpath but the "java.protocol.handler.pkgs" property does not been
to be set. The default HTTPS protocol class uses the
SSLSocketFactory directly.
Mike
On Thursday, January 16, 2003, at 08:31 AM, Ortwin Glück wrote:
> Thanks a lot!
>
> Michael Becke wrote:
>> Please do.
>> Mike
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
Re: SSL and BasicAuth Example
Posted by Ortwin Glück <or...@nose.ch>.
Thanks a lot!
Michael Becke wrote:
> Please do.
>
> Mike
Re: SSL and BasicAuth Example
Posted by Michael Becke <be...@u.washington.edu>.
Please do.
Mike
On Thursday, January 16, 2003, at 03:32 AM, Ortwin Glück wrote:
> Michael Becke wrote:
>> John,
>> Attached is an example that uses basic authentication. Please let me
>> know if you have any questions.
>> Mike
>
> Can I include this in the examples directory with under the Apache
> license?
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
Re: SSL and BasicAuth Example
Posted by Ortwin Glück <or...@nose.ch>.
Michael Becke wrote:
> John,
>
> Attached is an example that uses basic authentication. Please let me
> know if you have any questions.
>
> Mike
Can I include this in the examples directory with under the Apache license?
Re: SSL and BasicAuth Example
Posted by Michael Becke <be...@u.washington.edu>.
John,
Attached is an example that uses basic authentication. Please let me
know if you have any questions.
Mike