CertificateInfo constructor

CertificateInfo({
  1. required ByteBuffer certificate,
  2. required List<Hash> supportedHashes,
})

Implementation

CertificateInfo({
  /// Must be the DER encoding of a X.509 certificate. Currently, only
  /// certificates of RSA keys are supported.
  required ByteBuffer certificate,

  /// Must be set to all hashes supported for this certificate. This extension
  /// will only be asked for signatures of digests calculated with one of
  /// these
  /// hash algorithms. This should be in order of decreasing hash preference.
  required List<Hash> supportedHashes,
}) : _wrapped = $js.CertificateInfo(
        certificate: certificate.toJS,
        supportedHashes: supportedHashes.toJSArray((e) => e.toJS),
      );