SignRequest Event
This event signifies the processing of an atomic signing request.
Syntax
public event OnSignRequestHandler OnSignRequest; public delegate void OnSignRequestHandler(object sender, DcauthwebserverSignRequestEventArgs e); public class DcauthwebserverSignRequestEventArgs : EventArgs { public long ConnectionId { get; } public string Hash { get; }
public byte[] HashB { get; } public string Username { get; } public bool Allow { get; set; } }
Public Event OnSignRequest As OnSignRequestHandler Public Delegate Sub OnSignRequestHandler(sender As Object, e As DcauthwebserverSignRequestEventArgs) Public Class DcauthwebserverSignRequestEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As Long Public ReadOnly Property Hash As String
Public ReadOnly Property HashB As Byte() Public ReadOnly Property Username As String Public Property Allow As Boolean End Class
Remarks
Subscribe to this event to be notified of every signature request processed by the DC server. Note that any one request coming from the requestor may contain multiple individual signature requests (so-called 'batching'). This event is a good mechanism to track signature requests for accountability purposes, and provide basic access control over the signing operations. The Hash parameter contains the hash that is going to be signed. Username contains the HTTP user name of the connected user. Set Allow to false to stop the request from being served. Use the SignRequestCompleted event to track completion of the initiated operation.