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

流过昼夜 提交于 2019-12-13 04:06:45

问题


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.


回答1:


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.




回答2:


The Java EE 6 Tutorial, Part VII : Security



来源:https://stackoverflow.com/questions/12600157/sample-web-application-in-java-with-security-constraints-in-web-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!