public class FileLogin extends SimpleLogin
commitSucceeded, pending, principals
callbackHandler, options, sharedState, subject
Constructor and Description |
---|
FileLogin() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Initialize this login module using password file obtained from login config
|
protected java.util.Vector |
validateUser(java.lang.String username,
char[] password)
loads pwdFile before validating User
|
abort, commit, getLoginModuleName, login, logout, putPrincipal, showSharedState
getOption, getOption, getOption
protected java.util.Vector validateUser(java.lang.String username, char[] password) throws javax.security.auth.login.LoginException
validateUser
in class SimpleLogin
username
- The usernamepassword
- The passwordjavax.security.auth.login.LoginException
- if the login fails.public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class BasicLogin