Class AbstractSecondFactorAuthenticator

java.lang.Object
com.logicaldoc.enterprise.security.twofactorsauth.AbstractSecondFactorAuthenticator
All Implemented Interfaces:
SecondFactorAuthenticator
Direct Known Subclasses:
Duo, EmailAuthenticator, GoogleAuthenticator, YubiKey

public abstract class AbstractSecondFactorAuthenticator extends Object implements SecondFactorAuthenticator
A base for implementing other authenticators
Since:
7.7.3
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • AbstractSecondFactorAuthenticator

      public AbstractSecondFactorAuthenticator()
  • Method Details

    • isEnabledForUser

      public boolean isEnabledForUser(com.logicaldoc.core.security.user.User user)
      Description copied from interface: SecondFactorAuthenticator
      Check if a user is enabler or not
      Specified by:
      isEnabledForUser in interface SecondFactorAuthenticator
      Parameters:
      user - the user to check
      Returns:
      true only if the user is enabled
    • generateKey

      public String generateKey(com.logicaldoc.core.security.user.User user)
      A generic implementation that does do nothing. Concrete implementations should put here a call to the authentication framework to send the user a key he will have to put in the login screen
      Specified by:
      generateKey in interface SecondFactorAuthenticator
      Parameters:
      user - The user that will try to authenticate
      Returns:
      the result of the key generation, it may be a transaction id