ClientCertificateRequest constructor

ClientCertificateRequest({
  1. required List<ClientCertificateType> certificateTypes,
  2. required List<ByteBuffer> certificateAuthorities,
})

Implementation

ClientCertificateRequest({
  /// This field is a list of the types of certificates requested, sorted in
  /// order of the server's preference. Only certificates of a type contained
  /// in this list will be retrieved. If `certificateTypes` is the
  /// empty list, however, certificates of any type will be returned.
  required List<ClientCertificateType> certificateTypes,

  /// List of distinguished names of certificate authorities allowed by the
  /// server. Each entry must be a DER-encoded X.509 DistinguishedName.
  required List<ByteBuffer> certificateAuthorities,
}) : _wrapped = $js.ClientCertificateRequest(
        certificateTypes: certificateTypes.toJSArray((e) => e.toJS),
        certificateAuthorities:
            certificateAuthorities.toJSArray((e) => e.toJS),
      );