Name
AppConfigurationEntry.LoginModuleControlFlag
Synopsis
This inner class defines a “control flag” type and four specific instances of that type. The constants defined by this class specify whether a login module is required or optional, and have the following meanings:
-
REQUIRED Authentication by this module must be successful, or the overall login process will fail. However, even if authentication fails for this module, the
LoginContextcontinues to attempt authentication with any other modules in the list. (This can server to disguise the source of the authentication failure from an attacker)-
REQUSITE Authentication by this module must be successful, or the overall login process will fail. If authentication fails for this module, the
LoginContextdoes not try any further login modules.-
SUFFICIENT Authentication by this module is not required, and the overall login process can still succeed if all
REQUIREDandREQUISITEmodules successfully authenticate the user. However, if authentication by this module does succeed, theLoginContextdoes not try any further login modules, but instead returns immediately.-
OPTIONAL Authentication by this module is not required. Whether or not it succeeds, the
LoginContextcontinues to with any other modules on the list.
public static class AppConfigurationEntry.LoginModuleControlFlag { // No Constructor // Public Constants public static final AppConfigurationEntry.LoginModuleControlFlag OPTIONAL; public static final AppConfigurationEntry.LoginModuleControlFlag ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access