LibraryToggle FramesPrintFeedback

The JAAS login configuration file has the general format shown in Example 3.3.


Where the file format can be explained as follows:

  • LoginEntry labels a single entry in the login configuration. An application is typically configured to search for a particular LoginEntry label (for example, in Fuse Message Broker the LoginEntry label to use is specifed in the broker configuration file). Each login entry contains a list of login modules that are invoked in order.

  • ModuleClass is the fully-qualified class name of a JAAS login module. For example, org.apache.activemq.jaas.PropertiesLoginModule is the class name of Fuse Message Broker's JAAS simple authentication login module.

  • Flag determines how to react when the current login module reports an authentication failure. The Flag can have one of the following values:

    • required—authentication of this login module must succeed. Always proceed to the next login module in this entry, irrespective of success or failure.

    • requisite—authentication of this login module must succeed. If success, proceed to the next login module; if failure, return immediately without processing the remaining login modules.

    • sufficient—authentication of this login module is not required to succeed. If success, return immediately without processing the remaining login modules; if failure, proceed to the next login module.

    • optional—authentication of this login module is not required to succeed. Always proceed to the next login module in this entry, irrespective of success or failure.

  • Option="Value"—after the Flag, you can pass zero or more option settings to the login module. The options are specified in the form of a space-separated list, where each option has the form Option="Value". The login module line is terminated by a semicolon, ;.

Comments powered by Disqus
loading table of contents...