Interface DekRotationListener


public interface DekRotationListener
Listener interface for receiving notifications about Data Encryption Key (DEK) rotation events.

Implementations of this interface can be registered with the encryption system to be notified when a DEK rotation process has been completed. This allows components to react to key changes, such as updating cached encryption keys, initiating re-encryption of data, or performing cleanup operations related to the old key.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDekRotationCompleted(String chainId, int oldDekId, int newDekId)
    Callback invoked when a DEK rotation operation has been successfully completed.
  • Method Details

    • onDekRotationCompleted

      void onDekRotationCompleted(String chainId, int oldDekId, int newDekId)
      Callback invoked when a DEK rotation operation has been successfully completed.

      This method is called after the encryption system has finished rotating to a new DEK. Implementations should handle this event to update their internal state, refresh cached keys, or trigger any necessary follow-up actions such as data re-encryption.

      Parameters:
      chainId - The identifier of the encryption key chain for which rotation was completed. This identifies the specific key hierarchy or group affected by the rotation.
      oldDekId - The identifier of the previous DEK that was rotated out.
      newDekId - The identifier of the new DEK that is now active.