Java EE 6 security - use user entity class
All I need is a simple login page that will check against the username and password of a simple User entity class. Is that possible with Java EE 6? In the tutorials开发者_StackOverflow社区 they always store the users on the glassfish server.
You can do this in Java EE 6 with the JASPIC API. However, this is currently a somewhat lower-level API and actually implementing a simple login on basis of an application provided entity is thus still not that simple.
I've created a JIRA issue that addresses this specific requirement and provided a prototype implementation. See JAVAEE_SPEC-9 for more information.
Yes. What you need is form based authentication and Java EE provides some support for it. More details at the below link login authentication
精彩评论