InMemoryKeyManagementServiceProvider
SPI provider for TrustWeave's native in-memory Key Management Service.
This provider is automatically discovered via Java ServiceLoader when the module is on the classpath. The in-memory KMS requires no configuration or credentials, making it ideal for development and testing.
Example:
import org.trustweave.kms.*
// Simple factory API
val kms = KeyManagementServices.create("inmemory")
// Or directly
val kms = InMemoryKeyManagementService()Content copied to clipboard
Use Cases:
Development and testing
Single-process applications
Ephemeral key management
Prototyping and demos
Not Recommended For:
Production environments requiring key persistence
Multi-process or distributed systems
High-security scenarios requiring hardware-backed keys