Hi Prashant,

Please find attached a Guard subclass that checks the password against an
encrypted file in the same format as Apache .htpasswd files. 

The best source of information for subclassing Guard is the Javadocs and the
Wiki:

"Securing a Restlet application"
http://wiki.restlet.org/docs_1.1/g1/13-restlet/29-restlet/99-restlet/46-rest
let.html

Best regards,
Jerome


-----Message d'origine-----
De : news [mailto:[EMAIL PROTECTED] De la part de prashant
Envoye : mercredi 30 juillet 2008 13:42
A : discuss@restlet.tigris.org
Objet : Re: Authorizing incoming requests

Jerome Louvel <contact <at> noelios.com> writes:

> 
> 
> Hi Prashant,
> 
> Please have a look at this tutorial part:
> http://www.restlet.org/documentation/1.1/tutorial#part09 
> 
> Best regards,
> Jerome
> 
> -----Message d'origine-----
> De : news [mailto:news <at> ger.gmane.org] De la part de prashant
> Envoye : mercredi 30 juillet 2008 11:33
> A : discuss <at> restlet.tigris.org
> Objet : Authorizing incoming requests
> 
> Hi All,
> 
> I want to authorize each incoming request to my app based on some URl to
> roles 
> mapping (created an XML for this). I am not sure how to use Guard class of

> restlet frame work for this purpose.I am new to restlet framework.
> Also, could not find any tutorials or examples on web for doing this.
> 
> Can some body help me in undertstanding the usage of Guard class and 
> configurations in restlet framework to achieve this (if any).
> 
> thanks in advance.
> 
> Prashant
> 
> 

Hi Jerome,

Thanks for response. 

I have seen that tutorial, but it does not explains how I can extend this 
Guard for my application requirements. Its a simple code example which 
explains how we can create a Guard.

Thanks
Prashant




Attachment: HtPasswdGuard.java
Description: Binary data

Reply via email to