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: * @return string The secret key for the given key id.
15: * @throws SecretKeyNotAvailableException If the secret key for the given key id is not available.
16: */
17: public function getSecretKey($keyId);
18: }
19: