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
Constructors Constructor Description AbstractSecondFactorAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateKey(com.logicaldoc.core.security.User user)
A generic implementation that does do nothing.boolean
isEnabledForUser(com.logicaldoc.core.security.User user)
-
Methods 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
-
-
-
-
Method Detail
-
isEnabledForUser
public boolean isEnabledForUser(com.logicaldoc.core.security.User user)
- Specified by:
isEnabledForUser
in interfaceSecondFactorAuthenticator
-
generateKey
public String generateKey(com.logicaldoc.core.security.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 interfaceSecondFactorAuthenticator
- Parameters:
user
- The user that will try to authenticate- Returns:
- the result of the key generation, it may be a transaction id
-
-