W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1997

Basic Authentication in Java

From: Anselm Baird_Smith <Anselm.Baird_Smith@sophia.inria.fr>
Date: Fri, 1 Aug 1997 08:14:11 +0200 (MET DST)
Message-Id: <199708010614.IAA22469@www43.inria.fr>
To: Jack Van Keuls <vankeuj@nationwide.com>
Cc: www-jigsaw@w3.org
Jack Van Keuls writes:
 > I'm interested in building an Applet that acts as an HTTP client which
 > has the ability to perform Basic Authentication.  I have so-far found
 > the
 > JDK 1.1 classes (URL and URLConnection) inadequate to accomplish this.
 > While researching the problem, I ran across the Jigsaw packages, which
 > appear to provide that ability.  However, it's not clear to me from the
 > API documentation what needs to take place.
 > 
 > Is this possible using the w3c.www.http and w3c.www.protocol.http
 > packages, and if so, could anyone provide a simple example?

You may want to check w3c.www.protocol.http.auth which does this
transparently for you (it will even pop the dialog if allwoed)

Anselm.
Received on Friday, 1 August 1997 02:14:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT