Any library for authentication in a java web-app?

人盡茶涼 提交于 2019-12-24 09:57:24

问题


Hi I am look for a proven java security web-library which is a bit more low-level and therefore less intrusive than the well known frameworks spring-security and apache shiro.

Just something which has best-practive utility-apis for example to encode a remember-me cookie or for dighest authentication, accessing ldap. All the sutff which is so useful in the above frameworks but without needing to follow the frameworks filters and indriections an application-context or yet another ini file etc.


回答1:


Well, you can always use the HttpServletRequest.login() method or j_security_check and implement an auth manager beneath it for your particular server, that's pretty much the default & low level standard thing... Your only real other choice is, as you mentioned, security frameworks.




回答2:


Have a look at the Apache Shiro project it does a lot more then the standard libraries, and makes it really easy.




回答3:


If you don't want to use either of one, use container-managed security which both Tomcat and Jetty provide.



来源:https://stackoverflow.com/questions/6840986/any-library-for-authentication-in-a-java-web-app

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