Re: [jetty-user] Basic server login

Chris Haynes <[email protected]>
Newsgroups gmane.comp.java.jetty.support
Message-ID <[email protected]>
Assuming you don't mind writing some Java, the method I personally would use is to write a simple filter which ensures a login has been requested and checks the password.

There are other 'proper' ways of using the security features, but this is perhaps the quickest 'no files' method.



On Sunday, October 17, 2010 at 7:11:51 PM, andrej rolih wrote:

> Hi!
> I have a little trouble with jetty. I have embedded it into my
> application succcessfuly but I don't want to allow access to the
> site to anyone. So I want to password protect it. What is the
> easyest way to implement this? Since this is a embedded server I
> want to configure the whole system in Java rather than in xml files.
> I don't want anything complex. Just when the user connects to the
> server he must enter the password. And then he can do anything. I
> don't want multiple users or anything else. 
>                                           


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.