Class BasePasswordLoginModule
java.lang.Object
com.axemble.security.loginmodules.AbstractLoginModule
com.axemble.security.loginmodules.AbstractLoginPasswordModule
com.axemble.vdoc.sdk.authentication.base.BasePasswordLoginModule
- All Implemented Interfaces:
LoginModule
public abstract class BasePasswordLoginModule
extends com.axemble.security.loginmodules.AbstractLoginPasswordModule
- Author:
- vlygeros
-
Field Summary
Fields inherited from class com.axemble.security.loginmodules.AbstractLoginPasswordModule
AUTHENTICATION_ERROR_LOCKED_ACCOUNT
Fields inherited from class com.axemble.security.loginmodules.AbstractLoginModule
ALLOWED_ADDRESSES_OPTION, ALLOWED_USERS_OPTION, allowedAddresses, allowedUsers, callbackHandler, callbacks, debug, DEBUG_OPTION, DENIED_ADDRESSES_OPTION, DENIED_USERS_OPTION, deniedAddresses, deniedUsers, log, MESSAGE_IS_NOT_AUTHORIZED, options, sharedState, subject, userName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canAuthenticateUser
(com.axemble.vdoc.directory.domain.User user) final boolean
checkPassword
(com.axemble.vdoc.directory.domain.User user, String password) abstract boolean
checkPassword
(String password, IUser user) This allows to check if a password is valid for a specified userMethods inherited from class com.axemble.security.loginmodules.AbstractLoginPasswordModule
checkPasswordHandleLock, doInitialize, doLogin, lockHandler, mustCheckPasswordValidity, unLockHandler
Methods inherited from class com.axemble.security.loginmodules.AbstractLoginModule
abort, addErrorMessage, addErrorMessage, commit, fillCallBacks, getLogin, getOption, getOptions, getPassword, getProtocol, getRequest, getSpecifiedCallback, initialize, isAddressAuthorized, isLoginAuthorized, login, logout, setUserAccountPassword
-
Constructor Details
-
BasePasswordLoginModule
public BasePasswordLoginModule()
-
-
Method Details
-
canAuthenticateUser
protected boolean canAuthenticateUser(com.axemble.vdoc.directory.domain.User user) - Specified by:
canAuthenticateUser
in classcom.axemble.security.loginmodules.AbstractLoginPasswordModule
-
checkPassword
public final boolean checkPassword(com.axemble.vdoc.directory.domain.User user, String password) throws com.axemble.directory.exceptions.AuthenticationException, LoginException - Specified by:
checkPassword
in classcom.axemble.security.loginmodules.AbstractLoginPasswordModule
- Throws:
com.axemble.directory.exceptions.AuthenticationException
LoginException
-
checkPassword
public abstract boolean checkPassword(String password, IUser user) throws AuthenticationException, LoginException This allows to check if a password is valid for a specified user- Parameters:
password
- The password string to checkuser
- The specified user- Returns:
- true if the password is valid, false otherwise.
- Throws:
AuthenticationException
LoginException
-