getAuthenticationType()

The j2eeLib.getAuthenticationType() system function identifies the J2EE authentication method used for the current JSF Web application. If no such authentication is in use, this function returns an empty string.

j2eeLib.getAuthenticationType() is available only in JSF handlers.

Syntax

  j2eeLib.getAuthenticationType()
     returns (authenticationMethod STRING)
authenticationMethod
One of the following strings:
  • BASIC means that a user's authentication remains valid until the browser session ends. This method is the least secure.
  • CLIENT_CERT(for client certification) means that the authentication data is encrypted and that a security administrator can configure the server to require that a security certificate be reviewed before data is accepted.
  • DIGEST means that the password is encrypted. This option is not widely used.
  • FORM means that the user can customize the log-in process and can log out without ending the browser session.

For background details on authentication methods, see the documentation for your Web application server.


Feedback