public class DatabaseLoginModule extends AbstractLoginModule
© Copyright 2007 Sans Pareil Technologies, Inc.
callbackHandler, logger, options, principal, role, sharedState, subject| Constructor and Description |
|---|
DatabaseLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkPassword(String userName,
char[] password,
char[] key)
Check the specified credentials against the data store.
|
boolean |
login()
Attempts to authenticate the subject against data stored in a
database (JDO compliant relational or object data stores).
|
abort, commit, initialize, logoutpublic boolean login()
throws LoginException
LoginExceptionLoginModule.login()protected boolean checkPassword(String userName, char[] password, char[] key) throws LoginException
userName - The user/login name to check.password - The password to check.key - The key to use to decrypt the stored password.true if the specified credentials match.LoginException - If errors are encountered while fetching the
data from the data store.