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
    • 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 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