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 EmailOtpPlugin
canUse, consumeOtp, generateOtpCode, getCacheKey, getCodeTtlMinutes, getOtpCache, getSendIntervalSeconds, getStoredCode, releasesSendLockOnWrongCode, sendEmail, sendOtpCode, sendOtpCodeUnderLock, takeSendLock, 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
-