Source code for worldline.connect.sdk.webhooks.secret_key_store
from abc import ABCMeta, abstractmethod
[docs]class SecretKeyStore(object):
"""
A store of secret keys. Implementations could store secret keys in a database, on disk, etc.
"""
__metaclass__ = ABCMeta
[docs] @abstractmethod
def get_secret_key(self, key_id):
"""
:return: The secret key for the given key ID. Never None.
:raise SecretKeyNotAvailableException: If the secret key for the given key ID is not available.
"""
raise NotImplementedError