org.llm4s.agent.encryption.StaticKeySource
See theStaticKeySource companion object
@Experimental
final class StaticKeySource extends EncryptionKeySource
Keys held in memory (#2449): one for every thread, or one per tenant, with retired keys kept for reading.
for key <- EncryptionKey.fromBase64(KeyId("2026-11"), fromSecretStore)
yield StaticKeySource(key) // one key for every thread
.withTenantKey(TenantId("acme"), acmeKey) // acme's own
.withRetiredKey(lastYearsKey) // still read, never written with
Every key needs an id of its own: adding a second key under an id already held throws IllegalArgumentException (the same key again is accepted). toString lists key ids only.
Attributes
- Companion
- object
- Source
- EncryptionKeySource.scala
- Graph
-
- Supertypes
Members list
In this article
