开发者

user authentication in Tomcat

开发者 https://www.devze.com 2023-01-16 01:24 出处:网络
I need to implement a log开发者_StackOverflowin feature for the web application that I am building on eclipse using Java EE and Tomcat, JDBCRealm has been suggested for this purpose, but I don\'t unde

I need to implement a log开发者_StackOverflowin feature for the web application that I am building on eclipse using Java EE and Tomcat, JDBCRealm has been suggested for this purpose, but I don't understand why I can't simply get the login and password and check against the database for authentication?


You can but then you are rebuilding the same functionality that is already built into JDBCRealm, you will also have user roles built into the system. Up front it will probably be easier to do your own login and password check but in the long run JDBCRealm should be more maintainable.

0

精彩评论

暂无评论...
验证码 换一张
取 消