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 Modifier and Type Field Description static java.lang.StringEMAIL_PASSWORD_RESET_TOKEN
-
Constructor Summary
Constructors Constructor Description EmailPasswordResetter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangePassword(java.lang.String encodedToken, java.lang.String password)voidsendToken(tigase.xmpp.jid.BareJID bareJID, java.lang.String url)voidvalidateToken(java.lang.String encodedToken)-
Methods inherited from class tigase.extras.AbstractEmailSender
sendMail
-
-
-
-
Field Detail
-
EMAIL_PASSWORD_RESET_TOKEN
public static final java.lang.String EMAIL_PASSWORD_RESET_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateToken
public void validateToken(java.lang.String encodedToken) throws tigase.component.exceptions.RepositoryException- Specified by:
validateTokenin interfacetigase.auth.PasswordResetterIfc- Throws:
tigase.component.exceptions.RepositoryException
-
changePassword
public void changePassword(java.lang.String encodedToken, java.lang.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, java.lang.String url) throws tigase.component.exceptions.RepositoryException, java.lang.Exception- Specified by:
sendTokenin interfacetigase.auth.PasswordResetterIfc- Throws:
tigase.component.exceptions.RepositoryExceptionjava.lang.Exception
-
-