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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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 user

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BasePasswordLoginModule

      public BasePasswordLoginModule()
  • Method Details

    • canAuthenticateUser

      protected boolean canAuthenticateUser(com.axemble.vdoc.directory.domain.User user)
      Specified by:
      canAuthenticateUser in class com.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 class com.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 check
      user - The specified user
      Returns:
      true if the password is valid, false otherwise.
      Throws:
      AuthenticationException
      LoginException