1 | <?php |
||
21 | class ApiKeyAuthenticationHandler implements AuthenticationHandlerInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var ObjectManager |
||
25 | */ |
||
26 | private $om; |
||
27 | |||
28 | /** |
||
29 | * @var PasswordHasherInterface |
||
30 | */ |
||
31 | private $passwordHasher; |
||
32 | |||
33 | /** |
||
34 | * @var KeyFactoryInterface |
||
35 | */ |
||
36 | private $keyFactory; |
||
37 | |||
38 | /** |
||
39 | * @var EventDispatcherInterface |
||
40 | */ |
||
41 | private $eventDispatcher; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | private $modelName; |
||
47 | |||
48 | /** |
||
49 | * @var ClassMetadata |
||
50 | */ |
||
51 | private $classMetadata; |
||
52 | |||
53 | /** |
||
54 | * Constructor. |
||
55 | * |
||
56 | * @param ObjectManager $om |
||
57 | * @param PasswordHasherInterface $passwordHasher |
||
58 | * @param KeyFactoryInterface $keyFactory |
||
59 | * @param EventDispatcherInterface $dispatcher |
||
60 | * @param string $modelName |
||
61 | * @param ClassMetadata $metadata |
||
62 | */ |
||
63 | public function __construct( |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function authenticate(array $credentials) |
||
117 | 1 | ||
118 | 1 | /** |
|
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | 2 | public function removeSession($user, $purgeJob = false) |
|
139 | |||
140 | 3 | /** |
|
141 | * Getter for the object manager. |
||
142 | 3 | * |
|
143 | 3 | * @return ObjectManager |
|
144 | */ |
||
145 | 3 | protected function getOm() |
|
149 | |||
150 | /** |
||
151 | * Getter for the password hasher. |
||
152 | * |
||
153 | 3 | * @return PasswordHasherInterface |
|
154 | */ |
||
155 | 3 | protected function getPasswordHasher() |
|
159 | 1 | ||
160 | 1 | /** |
|
161 | * Getter for the key factory. |
||
162 | 3 | * |
|
163 | * @return KeyFactoryInterface |
||
164 | 3 | */ |
|
165 | protected function getKeyFactory() |
||
169 | 2 | ||
170 | 3 | /** |
|
171 | * Getter for the dispatcher. |
||
172 | * |
||
173 | * @return EventDispatcherInterface |
||
174 | */ |
||
175 | protected function getEventDispatcher() |
||
179 | |||
180 | /** |
||
181 | * Getter for the model name. |
||
182 | * |
||
183 | * @return string |
||
184 | */ |
||
185 | protected function getModelName() |
||
189 | |||
190 | /** |
||
191 | * @return ClassMetadata |
||
192 | */ |
||
193 | public function getClassMetadata() |
||
197 | } |
||
198 |