SecurityCheckerInterface.php 653 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Security\Model\SecurityChecker;
  7. /**
  8. * Interface for validation of reset password action
  9. *
  10. * @api
  11. * @since 100.1.0
  12. */
  13. interface SecurityCheckerInterface
  14. {
  15. /**
  16. * Perform security checks
  17. *
  18. * @param int $securityEventType
  19. * @param string|null $accountReference
  20. * @param int|null $longIp
  21. * @return void
  22. * @throws \Magento\Framework\Exception\SecurityViolationException
  23. * @since 100.1.0
  24. */
  25. public function check($securityEventType, $accountReference = null, $longIp = null);
  26. }