@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
| Modifier and Type | Field and Description |
|---|---|
static String |
EMAIL_CONFIRMATION_TOKEN_KEY |
protected Logger |
log |
| Constructor and Description |
|---|
EmailConfirmationSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeUnregister() |
void |
checkRequiredParameters(tigase.xmpp.jid.BareJID jid,
Map<String,String> reg_params) |
void |
initialize() |
boolean |
sendAccountValidation(tigase.xmpp.jid.BareJID jid,
Map<String,String> reg_params) |
void |
sendToken(tigase.xmpp.jid.BareJID bareJID,
String email,
Map<String,String> req_params) |
tigase.xmpp.jid.BareJID |
validateAccount(String encodedToken) |
sendMailpublic static final String EMAIL_CONFIRMATION_TOKEN_KEY
protected final Logger log
public void beforeUnregister()
beforeUnregister in interface tigase.kernel.beans.UnregisterAwarepublic void initialize()
initialize in interface tigase.kernel.beans.Initializablepublic void checkRequiredParameters(tigase.xmpp.jid.BareJID jid,
Map<String,String> reg_params)
throws tigase.xmpp.XMPPProcessorException
checkRequiredParameters in interface tigase.xmpp.impl.JabberIqRegister.AccountValidatortigase.xmpp.XMPPProcessorExceptionpublic boolean sendAccountValidation(tigase.xmpp.jid.BareJID jid,
Map<String,String> reg_params)
sendAccountValidation in interface tigase.xmpp.impl.JabberIqRegister.AccountValidatorpublic tigase.xmpp.jid.BareJID validateAccount(String encodedToken)
validateAccount in interface tigase.xmpp.impl.JabberIqRegister.AccountValidatorCopyright © 2007–2019 Tigase. All rights reserved.