Source code for worldline.connect.sdk.webhooks.secret_key_store
from abc import ABC, abstractmethod
[docs]
class SecretKeyStore(ABC):
"""
A store of secret keys. Implementations could store secret keys in a database, on disk, etc.
"""
[docs]
@abstractmethod
def get_secret_key(self, key_id: str) -> str:
"""
: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