1 | <?php |
||
21 | class Authenticator implements SimplePreAuthenticatorInterface |
||
|
|||
22 | { |
||
23 | /** |
||
24 | * @var JwtKey[] |
||
25 | */ |
||
26 | private $keys = []; |
||
27 | |||
28 | /** |
||
29 | * @param JwtKey[] $keys |
||
30 | */ |
||
31 | public function __construct(array $keys) |
||
32 | { |
||
33 | foreach ($keys as $key) { |
||
34 | $this->keys[$key->getId()] = $key; |
||
35 | } |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param string $id |
||
40 | * |
||
41 | * @return JwtKey |
||
42 | */ |
||
43 | public function getKeyById($id) |
||
58 | |||
59 | /** |
||
60 | * @param Request $request |
||
61 | * @param string $providerKey |
||
62 | * |
||
63 | * @return PreAuthenticatedToken |
||
64 | */ |
||
65 | public function createToken(Request $request, $providerKey) |
||
87 | |||
88 | /** |
||
89 | * @param TokenInterface $token |
||
90 | * @param UserProviderInterface $userProvider |
||
91 | * @param string $providerKey |
||
92 | * |
||
93 | * @return PreAuthenticatedToken |
||
94 | */ |
||
95 | public function authenticateToken(TokenInterface $token, UserProviderInterface $userProvider, $providerKey) |
||
106 | |||
107 | /** |
||
108 | * @param TokenInterface $token |
||
109 | * @param string $providerKey |
||
110 | * |
||
111 | * @return bool |
||
112 | */ |
||
113 | public function supportsToken(TokenInterface $token, $providerKey) |
||
117 | } |
||
118 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.