Class GoogleAuthenticator
- java.lang.Object
-
- com.logicaldoc.enterprise.security.twofactorsauth.AbstractSecondFactorAuthenticator
-
- com.logicaldoc.enterprise.security.twofactorsauth.GoogleAuthenticator
-
- All Implemented Interfaces:
SecondFactorAuthenticator
public class GoogleAuthenticator extends AbstractSecondFactorAuthenticator
Implements the second factor using the Google Authenticator service- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description GoogleAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(com.logicaldoc.core.security.User user, String key)Authenticates the given user-
Methods inherited from class com.logicaldoc.enterprise.security.twofactorsauth.AbstractSecondFactorAuthenticator
generateKey, isEnabledForUser
-
-
-
-
Method Detail
-
authenticate
public void authenticate(com.logicaldoc.core.security.User user, String key) throws com.logicaldoc.core.security.authentication.AuthenticationExceptionDescription copied from interface:SecondFactorAuthenticatorAuthenticates 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
-
-