@Deprecated public abstract class PasswordLoginModule extends BasePasswordLoginModule
_commitSucceeded, _currentRealm, _groupsList, _logger, _options, _passwd, _password, _sharedState, _subject, _succeeded, _username, _userPrincipal, sm| Constructor and Description |
|---|
PasswordLoginModule()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
authenticate()
Deprecated.
Perform authentication decision.
|
protected void |
authenticateUser()
Deprecated.
Older implementations can implement authenticate.
|
void |
commitAuthentication(String username,
char[] password,
Realm theRealm,
String[] groups)
Deprecated.
Since the passwords are to be stored as to have char[]
BT: 6946553.
|
void |
commitAuthentication(String username,
String password,
Realm theRealm,
String[] groups)
Deprecated.
|
abort, commit, commitUserAuthentication, extractCredentials, getCurrentRealm, getGroupsList, getPassword, getPasswordChar, getSubject, getUsername, getUserPrincipal, initialize, isCommitSucceeded, isSucceeded, login, logout, setLoginModuleForAuthentication@Deprecated public final void commitAuthentication(String username, String password, Realm theRealm, String[] groups)
This is a convenience method which can be used by subclasses to complete the steps required by RI legacy authentication code. Most of this should go away if a clean JAAS/Subject based infrastructure is provided. But for now this must be done.
Note that this method is called after the authentication has succeeded. If authentication failed do not call this method.
A lot of the RI behavior is still present here. Some of the most notable points to remember:
username - Name of authenticated user.password - Password of this user.theRealm - Current Realm object for this authentication.groups - String array of group memberships for user (could be
empty).public final void commitAuthentication(String username, char[] password, Realm theRealm, String[] groups)
username - Name of authenticated user.password - Password of this user in char[].theRealm - Current Realm object for this authentication.groups - String array of group memberships for user (could be
empty).protected final void authenticateUser()
throws LoginException
authenticateUser in class BasePasswordLoginModuleLoginExceptionprotected abstract void authenticate()
throws LoginException
com.sun.enterprise.security.LoginException - on authentication failure.LoginExceptionCopyright © 2017. All rights reserved.