Skip to main content

ContentKeyProvider

Trait ContentKeyProvider 

Source
pub trait ContentKeyProvider:
    Send
    + Sync
    + 'static {
    // Required methods
    fn current_key(&self) -> Option<ContentEncryptionKey>;
    fn key(&self, id: &str) -> Option<ContentEncryptionKey>;
}
Expand description

Supplies the current response key and retained request-decryption keys.

Providers should return immutable key snapshots and perform remote refreshes outside the request path. Rotation is safe when old keys remain available until all clients have moved to the new current_key ID.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§