onWrappedDekReceived property

void Function(String, String, String, DateTime?)? onWrappedDekReceived
final

Optional callback invoked when the server returns an X-Bella-Wrapped-Dek response header (ZKE key-wrapping flow).

Arguments:

  • projectSlug — slug of the project whose secrets were fetched
  • envSlug — environment slug
  • wrappedDek — base64-encoded wrapped Data-Encryption Key
  • leaseExpires — parsed value of X-Bella-Lease-Expires, or null

Use this to persist the wrapped DEK for offline / cache-warming scenarios.

Implementation

final void Function(String, String, String, DateTime?)? onWrappedDekReceived;