Hello Vidya,

actually in Restlet 1.1, this constructor is dedicated to the support of 
the DIGEST scheme (see the javadocs 
http://www.restlet.org/documentation/1.1/api/org/restlet/Guard.html).
Thanks for the report, I will a look at the sample code.

best regards,
Thierry Boileau

> Thanks a lot for pointer. I tried to use the code provided. But it did not 
> work. For both requests made in client i got 401 response.
>
> I have a query though.. where do we speficy the authentication is HTTP digest 
> on server side?
> Dont we need to specify that in the guard?
>
> Following is the code for guard -
>
> // Use the basic guard
> Guard guard = new Guard(component.getContext().createChildContext(), "realm", 
> baseUris, "serverKey");
>
> // Load a single static login/secret pair.
> guard.getSecrets().put("login", "secret".toCharArray());
>
> guard.setNext(restlet);
>
> Here, nowhere we specify the authentication type...
>
> Regards,
> -Vidya
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=990521
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=990566

Reply via email to