W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

Re: Basic Authentication!

From: Yves Lafon <ylafon@w3.org>
Date: Thu, 28 Jan 1999 14:44:19 +0100 (MET)
To: Wolfgang Platzer <Wolfgang.Platzer@iaik.tu-graz.ac.at>
cc: Jigsaw Mailinglist <www-jigsaw@w3.org>
Message-ID: <Pine.GSO.4.05.9901281443230.22975-100000@tarantula.inria.fr>
On Thu, 28 Jan 1999, Yves Lafon wrote:

> Here is a sample code to do that:
> 
> Base64Encoder encoder = new Base64Encoder(username+":"+password);
> String        coded   = encoder.processString();

Of course, forget those two lines, I forgot to remove them ;)

> 
> HttpCredential credential;
> Base64Encoder  encoder;
> 	credential = HttpFactory.makeCredential("Basic");
> 	encoder = new Base64Encoder(username+":"+password);
> 	credential.setAuthParameter("cookie", encoder.processString());
> 
>         request.setAuthorization(credential);
> 

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Thursday, 28 January 1999 08:44:32 GMT

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