Class OtpServiceImpl

    • Constructor Detail

      • OtpServiceImpl

        public OtpServiceImpl​(org.molgenis.settings.AppSettings appSettings)
    • Method Detail

      • tryVerificationCode

        public boolean tryVerificationCode​(String verificationCode,
                                           String secretKey)
        Description copied from interface: OtpService
        Use TOTP algorithm to verify validity of secret and verification code.
        Specified by:
        tryVerificationCode in interface OtpService
        Parameters:
        verificationCode - given verificationCode
        secretKey - generated secret key
        Returns:
        vericifcationCode matches secret key
      • getAuthenticatorURI

        public String getAuthenticatorURI​(String secretKey)
        Description copied from interface: OtpService
        Generate URI for use in authenticator apps
        Specified by:
        getAuthenticatorURI in interface OtpService
        Returns:
        Google Authenticator URI