Interface OtpGenerator<S,​D>


  • public interface OtpGenerator<S,​D>
    This interface provides the methods which can be used for OTP generation.
    Since:
    1.0.0
    Author:
    Ritesh Sinha
    • Method Detail

      • getOtp

        D getOtp​(S otpDto)
        This method can be used to generate OTP against a particular key. OTP against a particular key is generated only if the key is not freezed.
        Parameters:
        otpDto - the OTP generation DTO.
        Returns:
        the generated OTP.