onSignatureRequested property

EventStream<SignatureRequest> get onSignatureRequested

This event fires every time the browser needs to sign a message using a certificate provided by this extension via setCertificates. The extension must sign the input data from request using the appropriate algorithm and private key and return it by calling reportSignature with the received signRequestId.

Implementation

EventStream<SignatureRequest> get onSignatureRequested =>
    $js.chrome.certificateProvider.onSignatureRequested
        .asStream(($c) => ($js.SignatureRequest request) {
              return $c(SignatureRequest.fromJS(request));
            });