Websydian v6.1 online documentationOnline documentation - Websydian v6.1

EventHandlerWithSignature Function

Event Handler functions inheriting from the EventHandlerWithSignature pattern will be extended with functionality to calculate a Digital Signature and compare it with the incoming Digital Signature from the HTML form submitted by the web user.  If the two signatures are not identical, an error page is called.

The input for the signature calculation will by default be the hidden fields of the HTML form (excluding the Signature field itself) and the value of the Local<SignatureKey> field.  It is up to the developer to specify a value for the key field, which is done in the edit point 0 Pre check signature.  The name of the CA Plex group model will be used as the default key, if no signature key is specified.

The EventHandlerWithSignature pattern calls the SignFields function to perform the actual calculation of the Digital Signature.

All Page Generator functions using an Event Handler with Digital Signature functionality must inherit from the PageGeneratorWithSignature pattern.

See also the Integrity module documentation for a full explanation of the Digital Signature concept in Websydian.

Inheritance