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