Bases: EncryptionKeyStorageStrategy
Source code in event_sourcery/_event_store/event/encryption.py
| class NoKeyStorageStrategy(EncryptionKeyStorageStrategy):
def get(self, subject_id: str) -> bytes | None:
raise NotImplementedError(
"NoKeyStorageStrategy does not support key retrieval."
)
def store(self, subject_id: str, key: bytes) -> None:
raise NotImplementedError("NoKeyStorageStrategy does not support key storage.")
def delete(self, subject_id: str) -> None:
raise NotImplementedError("NoKeyStorageStrategy does not support key deletion.")
def scoped_for_tenant(self, tenant_id: TenantId) -> Self:
return self
|