简体   繁体   English

JSF Web应用程序中的身份验证/授权?

[英]Authentication / Authorization in JSF web application?

I found there are 2 types of authentication mechanism in JSF. 我发现JSF中有两种类型的身份验证机制。

  1. JAAS (Java Authentication and Authorization Service) JAAS(Java身份验证和授权服务)
  2. Container managed 集装箱管理

(please correct if I am wrong) (如果我错了,请更正)

I tried searching for a better tutorial that guide to learn any of those method. 我试图寻找一个更好的教程,指导学习任何这些方法。 Unfortunately I was ended up in many of uncompleted lessons. 不幸的是,我在许多未完成的课程中结束了。 Can any one provide me a solid tutorial or any guide where I can catch the rope. 任何人都可以为我提供一个可靠的教程或任何指导,我可以抓住绳索。

There are not just 2 types of authentication mechanisms (regardless of JSF). 不仅有两种类型的身份验证机制(无论JSF如何)。 The Oracle (SUN) documentation is actually very good and I would recommend it: Oracle(SUN)文档实际上非常好,我建议它:

Tutorial 教程

It discusses how to address security requirements in web tier and enterprise tier applications. 它讨论了如何解决Web层和企业层应用程序中的安全性要求。 Namely: 即:

  1. Getting Started Securing Web Applications - discusses and provides examples for adding security to web components such as servlets. 入门保护Web应用程序 - 讨论并提供了为Web组件(如servlet)添加安全性的示例。
  2. Getting Started Securing Enterprise Applications - discusses adding security to Java EE components such as enterprise beans and application clients. 入门保护企业应用程序 - 讨论为Java EE组件添加安全性,例如企业bean和应用程序客户端。

Correct name is JAAS (Java Authentication and Authorization Service) not JASS. 正确的名称是JAAS(Java身份验证和授权服务)而不是JASS。

Have you been here ? 来过这里吗?

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM