WriterInterface.php 937 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Integration\Model\Oauth\Token\RequestLog;
  8. /**
  9. * OAuth token request log writer interface.
  10. */
  11. interface WriterInterface
  12. {
  13. /**
  14. * Reset number of authentication failures for the specified user account.
  15. *
  16. * @param string $userName
  17. * @param int $userType
  18. * @param return void
  19. * @return void
  20. */
  21. public function resetFailuresCount($userName, $userType);
  22. /**
  23. * Increment number of authentication failures for the specified user account.
  24. *
  25. * @param string $userName
  26. * @param int $userType
  27. * @param return void
  28. * @return void
  29. */
  30. public function incrementFailuresCount($userName, $userType);
  31. /**
  32. * Clear expired authentication failure logs.
  33. *
  34. * @return void
  35. */
  36. public function clearExpiredFailures();
  37. }