XtransportCredentials.secure constructor

const XtransportCredentials.secure({
  1. List<int>? certificates,
  2. String? password,
  3. String? authority,
  4. BadCertificateHandler? onBadCertificate,
  5. List<int>? clientCertificateBytes,
  6. String? clientCertificatePassword,
  7. List<int>? clientPrivateKeyBytes,
  8. String? clientPrivateKeyPassword,
})

Enable TLS and optionally specify the certificates to trust. If certificates is not provided, the default trust store is used.

Implementation

const XtransportCredentials.secure({
  List<int>? certificates,
  String? password,
  String? authority,
  BadCertificateHandler? onBadCertificate,
  List<int>? clientCertificateBytes,
  String? clientCertificatePassword,
  List<int>? clientPrivateKeyBytes,
  String? clientPrivateKeyPassword,
}) : this._(
        true,
        certificates,
        password,
        authority,
        onBadCertificate,
        clientCertificateBytes,
        clientCertificatePassword,
        clientPrivateKeyBytes,
        clientPrivateKeyPassword,
      );