Class AccountDeactivationEmailOtpPlugin

java.lang.Object
io.meeds.social.security.plugin.EmailOtpPlugin
io.meeds.social.security.plugin.AccountDeactivationEmailOtpPlugin
All Implemented Interfaces:
io.meeds.web.security.plugin.OtpPlugin

@Service public class AccountDeactivationEmailOtpPlugin extends EmailOtpPlugin
Same OTP mechanics as EmailOtpPlugin (generation, TTL, length and send interval inherited; validation tentatives capped by OtpService), with a dedicated email wording for the account deactivation request flow. The OTP code is stored under a purpose-bound cache key, thus a code generated by this plugin can never validate another OTP purpose and vice versa.
  • Field Details

  • Constructor Details

    • AccountDeactivationEmailOtpPlugin

      public AccountDeactivationEmailOtpPlugin()
  • Method Details