Click or drag to resize
HashValidationAttribute Class
Does hash validation and performs redirect to Access denied page if validation fails. Works only with pages inherited from CMSPage class.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    CMS.UIControlsAbstractAttribute
      CMS.UIControlsHashValidationAttribute

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 13.0.131
Syntax
C#
public class HashValidationAttribute : AbstractAttribute, 
	ICMSSecurityAttribute, ICMSAttribute

The HashValidationAttribute type exposes the following members.

Constructors
  NameDescription
Public methodHashValidationAttribute
Default constructor.
Top
Properties
  NameDescription
Public propertyContainsMacro
If true, the attribute contains macros
(Inherited from AbstractAttribute.)
Public propertyExcludedParameters
Specifies query parameters which are excluded from hash counting. Parameters are separated by semicolon.
Public propertyExistingObject
If True, attribute is applied only when edited object is defined.
(Inherited from AbstractAttribute.)
Public propertyHashSalt
Hash salt.
Public propertyName
Name of the query parameter which contains hash value.
Public propertyNewObject
If True, attribute is applied only when edited object is not defined.
(Inherited from AbstractAttribute.)
Public propertyValidateWithoutParameters
Whether should be hash validated with excluded parameters if without them validation fails.
Top
Methods
  NameDescription
Public methodCheck
Does hash validation and performs redirect to Access denied page if validation fails.
Protected methodCheckEditedObject
Returns True if attribute should be applied. Evaluation is based on the edited object existence and ExistingObject and NewObject properties.
(Inherited from AbstractAttribute.)
Protected methodGetText
Gets the text for the element.
(Inherited from AbstractAttribute.)
Protected methodGetUrl
Transforms the URL to the correct format.
(Inherited from AbstractAttribute.)
Protected methodResolve
Resolves the give text.
(Inherited from AbstractAttribute.)
Top
See Also