1 | <?php |
||
8 | final class SecondFactorOnlyNameIdValidationService |
||
9 | { |
||
10 | /** |
||
11 | * @var LoggerInterface |
||
12 | */ |
||
13 | private $logger; |
||
14 | |||
15 | /** |
||
16 | * @var SamlEntityService |
||
17 | */ |
||
18 | private $entityService; |
||
19 | |||
20 | public function __construct(LoggerInterface $logger, SamlEntityService $entityService) |
||
25 | |||
26 | /** |
||
27 | * @param LoggerInterface $logger |
||
28 | * @return $this |
||
29 | */ |
||
30 | public function with(LoggerInterface $logger) |
||
35 | |||
36 | /** |
||
37 | * Is the given SP allowed to authenticate via Second Factor Only for the given NameID? |
||
38 | * |
||
39 | * @param string $spEntityId |
||
40 | * @param string $nameId |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function validate($spEntityId, $nameId) |
||
75 | } |
||
76 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.