Secure Delivery Adapter
Component Detail
Infrastructure
high complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Abstracts the encryption provider and device secure storage (Keychain on iOS, Keystore on Android) so that the key management strategy can evolve without changing business logic. Provides a unified interface for secure key storage, retrieval, and cryptographic operations across platforms, and manages the transport-layer security for encrypted payloads.
secure-delivery-adapter
Responsibilities
- Abstract platform-specific secure storage (iOS Keychain, Android Keystore) behind a unified API
- Manage secure enclave access for private key storage and retrieval
- Provide pluggable encryption provider interface allowing algorithm upgrades (RSA to ECDH, future post-quantum)
- Handle secure transport of encrypted payloads between client and server
- Manage key lifecycle including generation, storage, rotation, and deletion
Interfaces
storeKey(keyId, keyData, accessControl)
retrieveKey(keyId)
deleteKey(keyId)
isSecureEnclaveAvailable()
performEncrypt(algorithm, key, plaintext)
performDecrypt(algorithm, key, ciphertext)
getAvailableAlgorithms()
setEncryptionProvider(provider)
sendEncryptedPayload(endpoint, encryptedData)
receiveEncryptedPayload(assignmentId)