Interface SecondFactorAuthenticator
-
- All Known Implementing Classes:
AbstractSecondFactorAuthenticator,GoogleAuthenticator,YubiKey
public interface SecondFactorAuthenticatorDefines an authenticator for the second factor in a Two Factor Authentication. Implementations should support a specific method (typically a security token).- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticate(com.logicaldoc.core.security.User user, String key)Authenticates the given userbooleanisEnabledForUser(com.logicaldoc.core.security.User user)
-
-
-
Method Detail
-
authenticate
void authenticate(com.logicaldoc.core.security.User user, String key) throws com.logicaldoc.core.security.authentication.AuthenticationExceptionAuthenticates the given user- Parameters:
user- The user to checkkey- The key inputed by the user- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- the user was not authenticated
-
isEnabledForUser
boolean isEnabledForUser(com.logicaldoc.core.security.User user)
-
-