1 | <?php |
||
14 | class ApiKeyHelper |
||
15 | { |
||
16 | /** |
||
17 | * Get the API key using a username and password combination. |
||
18 | * |
||
19 | * @param string $username The username. |
||
20 | * @param string $password The password. |
||
21 | * @return string |
||
22 | * @throws \Speicher210\KontaktIO\Exception\ApiKeyExtractionInvalidCredentialsException |
||
23 | */ |
||
24 | public function getApiKey($username, $password) |
||
47 | |||
48 | /** |
||
49 | * Check if an API key is valid. |
||
50 | * |
||
51 | * @param string $apiKey The API key to check. |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function apiKeyIsValid(string $apiKey): bool |
||
70 | } |
||
71 |