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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateKey
(com.logicaldoc.core.security.user.User user) A generic implementation that does do nothing.boolean
isEnabledForUser
(com.logicaldoc.core.security.user.User user) Check if a user is enabler or notMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.logicaldoc.enterprise.security.twofactorsauth.SecondFactorAuthenticator
authenticate
-
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 interfaceSecondFactorAuthenticator
- Parameters:
user
- the user to check- Returns:
- true only if the user is enabled
-
generateKey
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 interfaceSecondFactorAuthenticator
- Parameters:
user
- The user that will try to authenticate- Returns:
- the result of the key generation, it may be a transaction id
-