Interface IMacroSignatureUpdateService
- Namespace
- CMS.MacroEngine
- Assembly
- CMS.MacroEngine.dll
Defines service for updating macro signatures within the system.
public interface IMacroSignatureUpdateService
- Extension Methods
Methods
UpdateMacroSignatures(string, string, bool, IUserInfo, Action<string>, Action<string>)
Updates the security signatures of existing macro expressions.
Signs all macros as the provided user if the oldSalt is not specified.
void UpdateMacroSignatures(string oldSalt, string newSalt, bool refreshAll, IUserInfo user, Action<string> logProcess, Action<string> logError)
Parameters
oldSaltstringOld salt.
newSaltstringNew salt. If not specified, the application's current salt is used for resigning.
refreshAllboolIf enabled the process skips signature integrity check and re-signs all macros.
userIUserInfoUser for macro signing. The new macro signatures will contain the name or identity of this user.
logProcessAction<string>Action that provides logging of progress status messages.
logErrorAction<string>Action that provides logging of progress error messages.
Exceptions
- ArgumentException
If
useris not specified when signing all macros (oldSaltisnullor empty, orrefreshAllistrue).