Package tigase.extras.passwordreset
Class EmailPasswordResetter
java.lang.Object
tigase.extras.AbstractEmailSender
tigase.extras.passwordreset.EmailPasswordResetter
- All Implemented Interfaces:
tigase.auth.PasswordResetterIfc
@Bean(name="account-email-password-resetter",
parent=tigase.kernel.core.Kernel.class,
active=false,
exportable=true)
public class EmailPasswordResetter
extends AbstractEmailSender
implements tigase.auth.PasswordResetterIfc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangePassword(String encodedToken, String password) voidvoidvalidateToken(String encodedToken) Methods inherited from class tigase.extras.AbstractEmailSender
sendMail
-
Field Details
-
EMAIL_PASSWORD_RESET_TOKEN
- See Also:
-
-
Constructor Details
-
EmailPasswordResetter
public EmailPasswordResetter()
-
-
Method Details
-
validateToken
public void validateToken(String encodedToken) throws tigase.component.exceptions.RepositoryException - Specified by:
validateTokenin interfacetigase.auth.PasswordResetterIfc- Throws:
tigase.component.exceptions.RepositoryException
-
changePassword
public void changePassword(String encodedToken, String password) throws tigase.component.exceptions.RepositoryException - Specified by:
changePasswordin interfacetigase.auth.PasswordResetterIfc- Throws:
tigase.component.exceptions.RepositoryException
-
sendToken
public void sendToken(tigase.xmpp.jid.BareJID bareJID, String url) throws tigase.component.exceptions.RepositoryException, Exception - Specified by:
sendTokenin interfacetigase.auth.PasswordResetterIfc- Throws:
tigase.component.exceptions.RepositoryExceptionException
-