1: <?php
2: namespace Worldline\Connect\Sdk\Webhooks;
3:
4: /**
5: * Class SecretKeyStore
6: * A store of secret keys. Implementations could store secret keys in a database, on disk, etc.
7: *
8: * @package Worldline\Connect\Sdk\Webhooks
9: */
10: interface SecretKeyStore
11: {
12: /**
13: * @param string $keyId
14: *
15: * @return string The secret key for the given key id.
16: * @throws SecretKeyNotAvailableException If the secret key for the given key id is not available.
17: */
18: public function getSecretKey(string $keyId): string;
19: }
20: