SecretChallengeUtil<T> constructor
SecretChallengeUtil<T> ({
- required Argon2HashUtil hashUtil,
- required SecretChallengeVerificationConfig<
T> verificationConfig, - required SecretChallengeCompletionConfig<
T> completionConfig,
Creates a new SecretChallengeUtil instance.
verificationConfig is the configuration for verifying challenges.
completionConfig is the configuration for completing challenges.
hashUtil is the utility for hashing verification codes.
Implementation
SecretChallengeUtil({
required final Argon2HashUtil hashUtil,
required final SecretChallengeVerificationConfig<T> verificationConfig,
required final SecretChallengeCompletionConfig<T> completionConfig,
}) : _verificationConfig = verificationConfig,
_completionConfig = completionConfig,
_hashUtil = hashUtil;