Creating a custom login module

JBoss EAP modules are jar files deployed in $EAP_HOME/modules/system/layers/base. Each module is identified by a package hierarchy and an index file--module.xml.  The package defines the module name, whereas the module.xml file contains the module configuration and dependencies list.

The beosbank-login-module project has only one class--BeosBankLoginModule--that extends DatabaseServerLoginModule. The DatabaseServerLoginModule class is a member of the org.picketbox/picketbox Maven dependency. The DatabaseServerLoginModule class has a method to convert rawpassword to plain text before verification during the authentication process:

protected String convertRawPassword(String rawPassword)

By default, this method ...

Get JBoss: Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.