Class 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 Detail

      • EMAIL_PASSWORD_RESET_TOKEN

        public static final java.lang.String EMAIL_PASSWORD_RESET_TOKEN
        See Also:
        Constant Field Values
    • Constructor Detail

      • EmailPasswordResetter

        public EmailPasswordResetter()
    • Method Detail

      • validateToken

        public void validateToken​(java.lang.String encodedToken)
                           throws tigase.component.exceptions.RepositoryException
        Specified by:
        validateToken in interface tigase.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:
        changePassword in interface tigase.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:
        sendToken in interface tigase.auth.PasswordResetterIfc
        Throws:
        tigase.component.exceptions.RepositoryException
        java.lang.Exception