Click or drag to resize
MacroSecurityProcessor Class
Class providing general macro security parameters processing.
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroSecurityProcessor

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 12.0.0
Syntax
C#
public static class MacroSecurityProcessor

The MacroSecurityProcessor type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberRegExpComplexMacro
Defines a regular expression that detects a complex macro (in case it is matched)
Top
Methods
  NameDescription
Public methodStatic memberAddMacroSecurityParams
Adds |(hash) and |(user) security parameters to given expression.
Public methodStatic memberAddSecurityParameters
Adds security parameters to every macro.
Public methodStatic memberCheckMacroIntegrity
Checks the integrity against given user.
Public methodStatic memberCheckSecurity
Checks the security of the accessed object.
Public methodStatic memberIsSimpleMacro
Returns true if the macro is simple and does not need signing.
Public methodStatic memberRefreshSecurityParameters(DataSet, MacroIdentityOption)
Recreates all the macros signatures according to new specified salt in all string columns of each row of the given DataSet (modifies the DataSet). Keeps the owners of the macros untouched (verifies the integrity against old salt).
Public methodStatic memberRefreshSecurityParameters(BaseInfo, MacroIdentityOption, Boolean, String)
Loops through all text columns of given info and signs ALL macros (even already signed) with specified identity option.
Public methodStatic memberRefreshSecurityParameters(BaseInfo, String, String, Boolean)
Loops through all text columns of given info and recreates all the macros signatures according to new specified salt. Keeps the owners of the macros untouched (verifies the integrity against old salt).
Public methodStatic memberRemoveMacroSecurityParams(String, MacroIdentityOption)
Removes |(hash) and |(user) or |(identity) security parameters from given expression.
Public methodStatic memberRemoveMacroSecurityParams(String, MacroIdentityOption, String)
Removes |(hash) and |(user) or |(identity) security parameters from given expression.
Public methodStatic memberRemoveSecurityParameters(String, Boolean, IDictionaryString, MacroIdentityOption)
Removes security parameters from all macros.
Public methodStatic memberRemoveSecurityParameters(String, Boolean, IDictionaryString, MacroIdentityOption, Boolean)
Removes security parameters from all macros.
Public methodStatic memberRemoveSecurityParametersAndAnonymize
Marks all macros int the text as anonymous.
Top
Events
  NameDescription
Public eventStatic memberOnCheckObjectPermissions
Event which is called whenever the security check on object is requested. It's called after the standard check is processed and the result can be overriden with this handler.
Top
See Also