@Override
  @SuppressWarnings("UnusedDeclaration")
  public boolean authorizeUser(String userName, int verificationCode, int window)
      throws GoogleAuthenticatorException {
    ICredentialRepository repository = getValidCredentialRepository();

    return authorize(repository.getSecretKey(userName), verificationCode, window);
  }
  @Override
  public boolean authorizeUser(String userName, int verificationCode)
      throws GoogleAuthenticatorException {

    ICredentialRepository repository = getValidCredentialRepository();

    return authorize(repository.getSecretKey(userName), verificationCode);
  }