SignatureRequest constructor

SignatureRequest({
  1. required int signRequestId,
  2. required ByteBuffer input,
  3. required Algorithm algorithm,
  4. required ByteBuffer certificate,
})

Implementation

SignatureRequest({
  /// Request identifier to be passed to [reportSignature].
  required int signRequestId,

  /// Data to be signed. Note that the data is not hashed.
  required ByteBuffer input,

  /// Signature algorithm to be used.
  required Algorithm algorithm,

  /// The DER encoding of a X.509 certificate. The extension must sign
  /// `input` using the associated private key.
  required ByteBuffer certificate,
}) : _wrapped = $js.SignatureRequest(
        signRequestId: signRequestId,
        input: input.toJS,
        algorithm: algorithm.toJS,
        certificate: certificate.toJS,
      );