SecretChallengeUtil<T> constructor

SecretChallengeUtil<T>({
  1. required Argon2HashUtil hashUtil,
  2. required SecretChallengeVerificationConfig<T> verificationConfig,
  3. 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;