DtlsClientContext constructor
DtlsClientContext({})
verify
enables certificate verification (recommended).
To allow the verification to succeed, system certificates have to be
imported using withTrustedRoots
, or custom root certificates
in DER format need to be imported with rootCertificates
.
System certificates are available only when OpenSSL is installed by
the system.
ciphers
controls the cipher suites offered to the server.
Implementation
DtlsClientContext({
bool verify = true,
bool withTrustedRoots = false,
List<Uint8List> rootCertificates = const [],
String? ciphers,
PskCredentialsCallback? pskCredentialsCallback,
}) : _pskCredentialsCallback = pskCredentialsCallback,
_withTrustedRoots = withTrustedRoots,
_verify = verify,
_rootCertificates = rootCertificates,
_ciphers = ciphers;