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
Nested Classes Modifier and Type Interface Description static class
TwoFactorsAuthenticationService.Instance
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changeTwoFactorsAuthentication(long userId, String secondFactor, String key, String account, boolean notify)
Changed the two factors authentication for a userString[]
generateGoogleAuthorizationCredentials(String account)
Creates new credentials of the given account name.String
generateYubiKeyCredentials(String key)
Saves the YubiKey credentials in the given user.
-
-
-
Method Detail
-
generateGoogleAuthorizationCredentials
String[] generateGoogleAuthorizationCredentials(String account) throws ServerException
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
String generateYubiKeyCredentials(String key) throws ServerException
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
-
-