Package io.meeds.social.security.plugin
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
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.meeds.social.security.plugin.EmailOtpPlugin
canUse, generateOtpCode, getCacheKey, validateOtp
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
AccountDeactivationEmailOtpPlugin
public AccountDeactivationEmailOtpPlugin()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.meeds.web.security.plugin.OtpPlugin- Overrides:
getNamein classEmailOtpPlugin
-
getEmailBodyPath
-
getEmailSubjectKey
- Overrides:
getEmailSubjectKeyin classEmailOtpPlugin
-