Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 8dfef87

Browse files
committed
Added new content about BASIC, FORM, and Custom FORM.
1 parent 793feea commit 8dfef87

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/main/jbake/content/security-webtier002.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,14 @@ section. Client and mutual authentication are discussed in
318318
link:security-advanced.html#GJJWX[Chapter 53, "Java EE Security: Advanced
319319
Topics"].
320320

321+
The Java EE Security API provides an alternative to specifying authentication mechanisms
322+
using the built-in authentication mechanism types of the
323+
`HttpAuthenticationMechanism` interface. The built-in authentication mechanisms perform
324+
BASIC, FORM, and Custom FORM authentication and are enabled and configured using
325+
annotations. You can use these built-in annotations
326+
in place of `<login-config>` described in the sections below. For more information, see link:security-api002.html#overview-of-the-http-authentication-mechanism-interface[Overview of
327+
the HTTP Authentication Mechanism Interface].
328+
321329
HTTP basic authentication and form-based authentication are not very
322330
secure authentication mechanisms. Basic authentication sends user names
323331
and passwords over the Internet as Base64-encoded text. Form-based
@@ -393,6 +401,17 @@ error page.
393401
link:#GEXFA[Figure 51-2] shows what happens when you specify form-based
394402
authentication.
395403

404+
[width="100%",cols="100%",]
405+
|=======================================================================
406+
a|
407+
*Note*:
408+
409+
Custom FORM, as specified in the Java EE Security API, differs from FORM
410+
in that the authentication dialog does not happen by posting back to `j_security_check`,
411+
but instead by invoking `SecurityContext.authenticate()` with the credentials the application
412+
collected.
413+
|=======================================================================
414+
396415
[[GEXFA]]
397416

398417
.*Figure 51-2 Form-Based Authentication*

0 commit comments

Comments
 (0)