ConfigInterface.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Security\Model;
  7. /**
  8. * Password security config Interface
  9. *
  10. * @api
  11. * @since 100.1.0
  12. */
  13. interface ConfigInterface
  14. {
  15. /**
  16. * Get customer service email address
  17. *
  18. * @return string
  19. * @since 100.1.0
  20. */
  21. public function getCustomerServiceEmail();
  22. /**
  23. * Get time period limitation of password reset requests
  24. *
  25. * @return int
  26. * @since 100.1.0
  27. */
  28. public function getLimitationTimePeriod();
  29. /**
  30. * Check if admin account sharing is enabled
  31. *
  32. * @return bool
  33. * @since 100.1.0
  34. */
  35. public function isAdminAccountSharingEnabled();
  36. /**
  37. * Get admin session lifetime
  38. *
  39. * @return int
  40. * @since 100.1.0
  41. */
  42. public function getAdminSessionLifetime();
  43. /**
  44. * Get password reset protection type
  45. *
  46. * @return int
  47. * @since 100.1.0
  48. */
  49. public function getPasswordResetProtectionType();
  50. /**
  51. * Get max number password reset requests per time period
  52. *
  53. * @return int
  54. * @since 100.1.0
  55. */
  56. public function getMaxNumberPasswordResetRequests();
  57. /**
  58. * Get minimum time between password reset requests
  59. *
  60. * @return int
  61. * @since 100.1.0
  62. */
  63. public function getMinTimeBetweenPasswordResetRequests();
  64. }