Class JDBCLoginModule
- java.lang.Object
-
- com.sun.enterprise.security.BasePasswordLoginModule
-
- com.sun.enterprise.security.ee.auth.login.JDBCLoginModule
-
- All Implemented Interfaces:
LoginModule
public class JDBCLoginModule extends BasePasswordLoginModule
This class implement a JDBC Login module for Payara.The work is derived from Sun's sample JDBC login module. Enhancements have been done to use the very latest features.
- Author:
- Jean-Baptiste Bugeaud
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.security.BasePasswordLoginModule
_commitSucceeded, _currentRealm, _groupsList, _options, _passwd, _password, _sharedState, _subject, _succeeded, _username, _userPrincipal, LOGGER, sm
-
-
Constructor Summary
Constructors Constructor Description JDBCLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
authenticateUser()
Perform JDBC authentication.-
Methods inherited from class com.sun.enterprise.security.BasePasswordLoginModule
abort, commit, commitUserAuthentication, extractCredentials, getCurrentRealm, getGroupsList, getPassword, getPasswordChar, getRealm, getSubject, getUsername, getUserPrincipal, initialize, isCommitSucceeded, isSucceeded, login, logout, setLoginModuleForAuthentication
-
-
-
-
Method Detail
-
authenticateUser
protected void authenticateUser() throws LoginException
Perform JDBC authentication. Delegates to JDBCRealm.- Specified by:
authenticateUser
in classBasePasswordLoginModule
- Throws:
LoginException
- If login fails (JAAS login() behavior).
-
-