There are more than two types of authentication mechanisms (independent of JSF). The Oracle documentation (SUN) is actually very good, and I would recommend it:
Tutorial
- . :
- <
href= "http://download.oracle.com/docs/cd/E17410_01/javaee/6/tutorial/doc/bncas.html" rel= "nofollow noreferrer" >
-
-,
.
- <
href= "http://download.oracle.com/docs/cd/E17410_01/javaee/6/tutorial/doc/bnbyk.html" rel= "nofollow noreferrer" >
-
Java EE,
beans
.