开发者

Java EE 6 security - use user entity class

开发者 https://www.devze.com 2023-01-22 11:06 出处:网络
All I need is a simple login page that will check against the username and password of a simple 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

0

精彩评论

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