Interface TwoFactorsAuthenticationService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("twoFactorsAuth")
public interface TwoFactorsAuthenticationService
extends com.google.gwt.user.client.rpc.RemoteService
Service to setup the Two Factors Authentication
- Since:
- 7.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeTwoFactorsAuthentication
(long userId, String secondFactor, String key, String account, boolean notify) Changed the two factors authentication for a userCreates new credentials of the given account name.Saves the YubiKey credentials in the given user.
-
Method Details
-
generateGoogleAuthorizationCredentials
Creates new credentials of the given account name.- Parameters:
account
- the account name- Returns:
- secret key and url of the QRCode
- Throws:
ServerException
- error in the server application
-
generateYubiKeyCredentials
Saves the YubiKey credentials in the given user.- Parameters:
key
- the key inputed using the USB device- Returns:
- The extracted publicId
- Throws:
ServerException
- error in the server application
-
changeTwoFactorsAuthentication
void changeTwoFactorsAuthentication(long userId, String secondFactor, String key, String account, boolean notify) throws ServerException Changed the two factors authentication for a user- Parameters:
userId
- The user IdentifiersecondFactor
- The authenticator to usekey
- A secret keyaccount
- An account referencenotify
- If the new settings have to be notified- Throws:
ServerException
- error in the server application
-