@Test void generateSecretKeyTest() { String key = twoFactorAuthenticationServiceImpl.generateSecretKey(); assertTrue(key.matches("^[a-z0-9]+$")); }
@Override public String generateSecretKey() { return idGenerator.generateId(SECURE_RANDOM); }
TwoFactorAuthenticationServiceImpl implements TwoFactorAuthenticationService { @Override public String generateSecretKey() { return idGenerator.generateId(SECURE_RANDOM); } }
TwoFactorAuthenticationServiceImpl implements TwoFactorAuthenticationService { @Override public String generateSecretKey() { return idGenerator.generateId(SECURE_RANDOM); } TwoFactorAuthenticationServiceImpl(
      OtpService otpService,
      DataService dataService,
      UserService userService,
      IdGenerator idGenerator,
      UserSecretFactory userSecretFactory); }
TwoFactorAuthenticationServiceImpl implements TwoFactorAuthenticationService { @Override public String generateSecretKey() { return idGenerator.generateId(SECURE_RANDOM); } TwoFactorAuthenticationServiceImpl(
      OtpService otpService,
      DataService dataService,
      UserService userService,
      IdGenerator idGenerator,
      UserSecretFactory userSecretFactory); @Override boolean isVerificationCodeValidForUser(String verificationCode); @Override boolean userIsBlocked(); @Override void saveSecretForUser(String secret); @Override void resetSecretForUser(); @Override void enableForUser(); @Override void disableForUser(); @Override String generateSecretKey(); @Override boolean isConfiguredForUser(); }
TwoFactorAuthenticationServiceImpl implements TwoFactorAuthenticationService { @Override public String generateSecretKey() { return idGenerator.generateId(SECURE_RANDOM); } TwoFactorAuthenticationServiceImpl(
      OtpService otpService,
      DataService dataService,
      UserService userService,
      IdGenerator idGenerator,
      UserSecretFactory userSecretFactory); @Override boolean isVerificationCodeValidForUser(String verificationCode); @Override boolean userIsBlocked(); @Override void saveSecretForUser(String secret); @Override void resetSecretForUser(); @Override void enableForUser(); @Override void disableForUser(); @Override String generateSecretKey(); @Override boolean isConfiguredForUser();  }