class
Amber::Schema::COSE::KeyProvider
- Amber::Schema::COSE::KeyProvider
- Reference
- Object
Overview
A process-wide provider contains immutable key material and supports an old key grace window during rotation. A fresh nonce and cipher context are still created for every message.
Defined in:
amber/schema/cose.crConstructors
-
.from_env!(key_variable = "AMBER_WIRE_KEY", key_id_variable = "AMBER_WIRE_KEY_ID") : self
There is intentionally no development fallback key.
- .new(key : Bytes, key_id : String)
Instance Method Summary
- #add(key_id : String, key : Bytes) : self
- #current_key : Bytes
- #key_id : String
- #resolve(key_id : Bytes) : Bytes | Nil
Constructor Detail
There is intentionally no development fallback key. Applications must make encryption an explicit configuration decision.