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()

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

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val name: String
Link copied to clipboard

In-memory KMS requires no environment variables or credentials.

Link copied to clipboard
open override val supportedAlgorithms: Set<Algorithm>

Functions

Link copied to clipboard
open override fun create(options: Map<String, Any?>): KeyManagementService
Link copied to clipboard
open fun supportsAlgorithm(algorithmName: String): Boolean
open fun supportsAlgorithm(algorithm: Algorithm): Boolean