W3cubDocs

/Dart 2

setClientAuthorities method

void setClientAuthorities (String file, { String password })

Sets the list of authority names that a SecureServerSocket will advertise as accepted when requesting a client certificate from a connecting client.

file is a PEM or PKCS12 file containing the accepted signing authority certificates - the authority names are extracted from the certificates. For PKCS12 files, password is the password for the file. For PEM files, password is ignored. Assuming it is well-formatted, all other contents of file are ignored.

NB: This function calls File.readAsBytesSync, and will block on file IO. Prefer using setClientAuthoritiesBytes.

iOS note: This call is not supported.

Implementation

void setClientAuthorities(String file, {String password});

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/SecurityContext/setClientAuthorities.html