Class MetamaskSignInFilter

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin, org.exoplatform.web.filter.Filter

    public class MetamaskSignInFilter
    extends org.exoplatform.web.application.JspBasedWebHandler
    implements org.exoplatform.web.filter.Filter
    A Login extension to submit Login parameters to UI for used network, contract adresses ...
    • Constructor Detail

      • MetamaskSignInFilter

        public MetamaskSignInFilter​(org.exoplatform.container.PortalContainer container,
                                    org.exoplatform.web.WebAppController webAppController,
                                    org.exoplatform.services.resources.LocaleConfigService localeConfigService,
                                    org.exoplatform.portal.branding.BrandingService brandingService,
                                    org.exoplatform.web.application.javascript.JavascriptConfigService javascriptConfigService,
                                    org.exoplatform.portal.resource.SkinService skinService,
                                    MetamaskLoginService metamaskLoginService)
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest servletRequest,
                             javax.servlet.ServletResponse servletResponse,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface org.exoplatform.web.filter.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • forwardUserRegistrationForm

        protected void forwardUserRegistrationForm​(org.exoplatform.web.ControllerContext controllerContext,
                                                   String errorCode)
                                            throws Exception
        Throws:
        Exception
      • prepareDispatch

        protected boolean prepareDispatch​(org.exoplatform.web.ControllerContext controllerContext,
                                          String errorCode)
                                   throws Exception
        Throws:
        Exception
      • addRegisterFormParams

        protected void addRegisterFormParams​(org.json.JSONObject params,
                                             javax.servlet.http.HttpServletRequest request,
                                             String errorCode)
      • registerUserAndWrapRequestForLogin

        protected javax.servlet.http.HttpServletRequest registerUserAndWrapRequestForLogin​(javax.servlet.http.HttpServletRequest request,
                                                                                           javax.servlet.http.HttpServletResponse response)
                                                                                    throws Exception
        Throws:
        Exception
      • getCompoundPassword

        protected String getCompoundPassword​(javax.servlet.http.HttpServletRequest request)