Class JDBCLoginModule

  • All Implemented Interfaces:

    public class JDBCLoginModule
    extends AbstractDatabaseLoginModule

    JAAS LoginModule to retrieve user information from a database and authenticate the user.


    This version uses plain old JDBC connections NOT Datasources.

    • Constructor Detail

      • JDBCLoginModule

        public JDBCLoginModule()
    • Method Detail

      • initialize

        public void initialize​( subject,
                               java.util.Map<java.lang.String,​?> sharedState,
                               java.util.Map<java.lang.String,​?> options)
        Init LoginModule.

        Called once by JAAS after new instance created.

        Specified by:
        initialize in interface
        initialize in class AbstractDatabaseLoginModule
        subject - the subject
        callbackHandler - the callback handler
        sharedState - the shared state map
        options - the options map
        See Also:
        LoginModule.initialize(,, java.util.Map, java.util.Map)