简体   繁体   中英

Sample web application in java with security constraints in web.xml

I am looking for sample web application in JAVA which has security-constraints in its web.xml file to handle authentication and authorization. Basically I want to see how web security is implemented with security constraints.

I goggled about it and mostly could find example of web.xml file which shows how can one provide web security with security constraints. but I would like to have may be small but complete web application in java which exhibits this concept.

Could someone please suggest some source for this ? I am new to web application development and web security both.

Pl note that I don't want to give any security to existing web application I need some sample application in java which has some authentication-authorization mechanism. I need it to do some experiments as part of my study.

Thanks.

Have you considered reading Securing Web Applications in the Java EE 5 Tutorial ? The tutorial bundle contains plenty of examples.

You can download a ZIP file of examples here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM