ChannelCredentials.secure constructor
const
ChannelCredentials.secure({
- List<
int> ? certificates, - String? password,
- String? authority,
- BadCertificateHandler? onBadCertificate,
Enable TLS and optionally specify the certificates
to trust. If
certificates
is not provided, the default trust store is used.
Implementation
const ChannelCredentials.secure(
{List<int>? certificates,
String? password,
String? authority,
BadCertificateHandler? onBadCertificate})
: this._(true, certificates, password, authority, onBadCertificate);