Class TwoFactorsAuthentication
java.lang.Object
com.logicaldoc.enterprise.security.twofactorsauth.TwoFactorsAuthentication
Manages the Two Factor Authentication
- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkSecondFactor
(com.logicaldoc.core.security.user.User user, String key) Performs second factor authentication checksstatic String
generateKey
(com.logicaldoc.core.security.user.User user) Gets the right second factor authenticator and invoke the generateKeystatic void
init()
Populate the authenticators using the extension point SecondAuthentication declared in the core plug-in.
-
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 loginkey
- the key provided by the user- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
- the user has not been authenticated
-
generateKey
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.
-