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 SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionvoidchangeTwoFactorsAuthentication(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- 
generateGoogleAuthorizationCredentialsCreates 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
 
- 
generateYubiKeyCredentialsSaves 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
 
- 
changeTwoFactorsAuthenticationvoid 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 Identifier
- secondFactor- The authenticator to use
- key- A secret key
- account- An account reference
- notify- If the new settings have to be notified
- Throws:
- ServerException- error in the server application
 
 
-