VerificationDetails constructor

VerificationDetails({
  1. required List<ByteBuffer> serverCertificateChain,
  2. required String hostname,
})

Implementation

VerificationDetails({
  /// Each chain entry must be the DER encoding of a X.509 certificate, the
  /// first entry must be the server certificate and each entry must certify
  /// the entry preceding it.
  required List<ByteBuffer> serverCertificateChain,

  /// The hostname of the server to verify the certificate for, e.g. the
  /// server
  /// that presented the `serverCertificateChain`.
  required String hostname,
}) : _wrapped = $js.VerificationDetails(
        serverCertificateChain:
            serverCertificateChain.toJSArray((e) => e.toJS),
        hostname: hostname,
      );