Class EmailConfirmationSender

  • All Implemented Interfaces:
    tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware, tigase.xmpp.impl.JabberIqRegister.AccountValidator

    @Bean(name="account-registration-email-validator",
          parent=tigase.kernel.core.Kernel.class,
          active=false,
          exportable=true)
    public class EmailConfirmationSender
    extends AbstractEmailSender
    implements tigase.xmpp.impl.JabberIqRegister.AccountValidator, tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
    Created by bmalkow on 21.04.2017.
    • Constructor Detail

      • EmailConfirmationSender

        public EmailConfirmationSender()
    • Method Detail

      • beforeUnregister

        public void beforeUnregister()
        Specified by:
        beforeUnregister in interface tigase.kernel.beans.UnregisterAware
      • initialize

        public void initialize()
        Specified by:
        initialize in interface tigase.kernel.beans.Initializable
      • checkRequiredParameters

        public void checkRequiredParameters​(tigase.xmpp.jid.BareJID jid,
                                            Map<String,​String> reg_params)
                                     throws tigase.xmpp.XMPPProcessorException
        Specified by:
        checkRequiredParameters in interface tigase.xmpp.impl.JabberIqRegister.AccountValidator
        Throws:
        tigase.xmpp.XMPPProcessorException
      • sendAccountValidation

        public boolean sendAccountValidation​(tigase.xmpp.jid.BareJID jid,
                                             Map<String,​String> reg_params)
        Specified by:
        sendAccountValidation in interface tigase.xmpp.impl.JabberIqRegister.AccountValidator
      • validateAccount

        public tigase.xmpp.jid.BareJID validateAccount​(String encodedToken)
        Specified by:
        validateAccount in interface tigase.xmpp.impl.JabberIqRegister.AccountValidator
      • sendToken

        public void sendToken​(tigase.xmpp.jid.BareJID bareJID,
                              String email,
                              Map<String,​String> req_params)