using Bit.Core.Auth.Models.Data; using Microsoft.AspNetCore.Identity; using Microsoft.Data.SqlClient; namespace Bit.Core.Auth.UserFeatures.UserKey; public interface IRotateUserKeyCommand { /// /// Sets a new user key and updates all encrypted data. /// /// All necessary information for rotation. Warning: Any encrypted data not included will be lost. /// An IdentityResult for verification of the master password hash /// User must be provided. Task RotateUserKeyAsync(RotateUserKeyData model); } public delegate Task UpdateEncryptedDataForKeyRotation(SqlTransaction transaction = null);