Class TwoFactorsAuthentication

java.lang.Object
com.logicaldoc.enterprise.security.twofactorsauth.TwoFactorsAuthentication

public class TwoFactorsAuthentication extends Object
Manages the Two Factor Authentication
Since:
7.7.3
Author:
Marco Meschieri - LogicalDOC
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    checkSecondFactor(com.logicaldoc.core.security.user.User user, String key)
    Performs second factor authentication checks
    static String
    generateKey(com.logicaldoc.core.security.user.User user)
    Gets the right second factor authenticator and invoke the generateKey
    static void
    Populate the authenticators using the extension point SecondAuthentication declared in the core plug-in.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • checkSecondFactor

      public static void checkSecondFactor(com.logicaldoc.core.security.user.User user, String key) throws com.logicaldoc.core.security.authentication.AuthenticationException
      Performs second factor authentication checks
      Parameters:
      user - the actual user that wants to login
      key - the key provided by the user
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - the user has not been authenticated
    • generateKey

      public static String generateKey(com.logicaldoc.core.security.user.User user)
      Gets the right second factor authenticator and invoke the generateKey
      Parameters:
      user - the user trying to login
      Returns:
      the value returned by the second factor authenticator
    • init

      public static void init()
      Populate the authenticators using the extension point SecondAuthentication declared in the core plug-in.