1 | <?php |
||
28 | class SmsSecondFactorService implements SmsSecondFactorServiceInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var \Surfnet\StepupBundle\Service\SmsService |
||
32 | */ |
||
33 | private $smsService; |
||
34 | |||
35 | /** |
||
36 | * @var \Surfnet\StepupBundle\Service\SmsSecondFactor\SmsVerificationStateHandler |
||
37 | */ |
||
38 | private $smsVerificationStateHandler; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $originator; |
||
44 | |||
45 | /** |
||
46 | * @param SmsService $smsService |
||
47 | * @param SmsVerificationStateHandler $smsVerificationStateHandler |
||
48 | * @param string $originator |
||
49 | */ |
||
50 | public function __construct( |
||
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function getOtpRequestsRemainingCount() |
||
77 | |||
78 | /** |
||
79 | * @return int |
||
80 | */ |
||
81 | public function getMaximumOtpRequestsCount() |
||
85 | |||
86 | /** |
||
87 | * @return bool |
||
88 | */ |
||
89 | public function hasSmsVerificationState() |
||
93 | |||
94 | public function clearSmsVerificationState() |
||
98 | |||
99 | /** |
||
100 | * @param SendSmsChallengeCommand $command |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function sendChallenge(SendSmsChallengeCommand $command) |
||
116 | |||
117 | /** |
||
118 | * @param VerifyPossessionOfPhoneCommand $command |
||
119 | * @return OtpVerification |
||
120 | */ |
||
121 | public function verifyPossession(VerifyPossessionOfPhoneCommand $command) |
||
125 | } |
||
126 |