XtransportCredentials.secure constructor
const
XtransportCredentials.secure({})
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,
);