Class TwoFactorsAuthenticationServiceImpl

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, com.logicaldoc.gui.frontend.client.services.TwoFactorsAuthenticationService, com.logicaldoc.gui.login.client.services.TfaService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class TwoFactorsAuthenticationServiceImpl
    extends com.google.gwt.user.server.rpc.RemoteServiceServlet
    implements com.logicaldoc.gui.frontend.client.services.TwoFactorsAuthenticationService, com.logicaldoc.gui.login.client.services.TfaService
    Implements the GWT service TwoFactorsAuthenticationService
    Since:
    7.7.3
    Author:
    Marco Meschieri - LogicalDOC
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.logicaldoc.gui.login.client.services.TfaService

        com.logicaldoc.gui.login.client.services.TfaService.Instance
      • Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.TwoFactorsAuthenticationService

        com.logicaldoc.gui.frontend.client.services.TwoFactorsAuthenticationService.Instance
    • Constructor Detail

      • TwoFactorsAuthenticationServiceImpl

        public TwoFactorsAuthenticationServiceImpl()
    • Method Detail

      • generateGoogleAuthorizationCredentials

        public String[] generateGoogleAuthorizationCredentials​(String account)
                                                        throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        generateGoogleAuthorizationCredentials in interface com.logicaldoc.gui.frontend.client.services.TwoFactorsAuthenticationService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • changeTwoFactorsAuthentication

        public void changeTwoFactorsAuthentication​(long userId,
                                                   String secondFactor,
                                                   String key,
                                                   String account,
                                                   boolean notify)
                                            throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        changeTwoFactorsAuthentication in interface com.logicaldoc.gui.frontend.client.services.TwoFactorsAuthenticationService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • generateYubiKeyCredentials

        public String generateYubiKeyCredentials​(String key)
                                          throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        generateYubiKeyCredentials in interface com.logicaldoc.gui.frontend.client.services.TwoFactorsAuthenticationService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • generateKey

        public String generateKey​(String username)
                           throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        generateKey in interface com.logicaldoc.gui.login.client.services.TfaService
        Throws:
        com.logicaldoc.gui.common.client.ServerException