Index: sdk/lib/io/security_context.dart |
diff --git a/sdk/lib/io/security_context.dart b/sdk/lib/io/security_context.dart |
index e6414a0ae5e1c2cd755cee7b119ffd12808428de..8d55c19a2457ed9eeb62f1635a7c42ec2544f149 100644 |
--- a/sdk/lib/io/security_context.dart |
+++ b/sdk/lib/io/security_context.dart |
@@ -9,7 +9,7 @@ part of dart.io; |
* a secure client connection, and the certificate chain and |
* private key to serve from a secure server. |
* |
- * The [SecureSocket] and [SecureServer] classes take a SecurityContext |
+ * The [SecureSocket] and [SecureServerSocket] classes take a SecurityContext |
* as an argument to their connect and bind methods. |
* |
* Certificates and keys can be added to a SecurityContext from either PEM |
@@ -45,7 +45,7 @@ abstract class SecurityContext { |
* other contents of [file] are ignored. An unencrypted file can be used, |
* but this is not usual. |
* |
- * NB: This function calls [ReadFileAsBytesSync], and will block on file IO. |
+ * NB: This function calls [File.readAsBytesSync], and will block on file IO. |
* Prefer using [usePrivateKeyBytes]. |
* |
* iOS note: Only PKCS12 data is supported. It should contain both the private |
@@ -73,7 +73,7 @@ abstract class SecurityContext { |
* ignored. Assuming it is well-formatted, all other contents of [file] are |
* ignored. |
* |
- * NB: This function calls [ReadFileAsBytesSync], and will block on file IO. |
+ * NB: This function calls [File.readAsBytesSync], and will block on file IO. |
* Prefer using [setTrustedCertificatesBytes]. |
* |
* iOS note: On iOS, this call takes only the bytes for a single DER |
@@ -94,7 +94,7 @@ abstract class SecurityContext { |
void setTrustedCertificatesBytes(List<int> certBytes, {String password}); |
/** |
- * Sets the chain of X509 certificates served by [SecureServer] |
+ * Sets the chain of X509 certificates served by [SecureServerSocket] |
* when making secure connections, including the server certificate. |
* |
* [file] is a PEM or PKCS12 file containing X509 certificates, starting with |
@@ -105,7 +105,7 @@ abstract class SecurityContext { |
* [password] is ignored. Assuming it is well-formatted, all |
* other contents of [file] are ignored. |
* |
- * NB: This function calls [ReadFileAsBytesSync], and will block on file IO. |
+ * NB: This function calls [File.readAsBytesSync], and will block on file IO. |
* Prefer using [useCertificateChainBytes]. |
* |
* iOS note: As noted above, [usePrivateKey] does the job of both |
@@ -114,7 +114,7 @@ abstract class SecurityContext { |
void useCertificateChain(String file, {String password}); |
/** |
- * Sets the chain of X509 certificates served by [SecureServer] |
+ * Sets the chain of X509 certificates served by [SecureServerSocket] |
* when making secure connections, including the server certificate. |
* |
* Like [useCertificateChain] but takes the contents of the file. |
@@ -122,7 +122,7 @@ abstract class SecurityContext { |
void useCertificateChainBytes(List<int> chainBytes, {String password}); |
/** |
- * Sets the list of authority names that a [SecureServer] will advertise |
+ * Sets the list of authority names that a [SecureServerSocket] will advertise |
* as accepted when requesting a client certificate from a connecting |
* client. |
* |
@@ -132,7 +132,7 @@ abstract class SecurityContext { |
* For PEM files, [password] is ignored. Assuming it is well-formatted, all |
* other contents of [file] are ignored. |
* |
- * NB: This function calls [ReadFileAsBytesSync], and will block on file IO. |
+ * NB: This function calls [File.readAsBytesSync], and will block on file IO. |
* Prefer using [setClientAuthoritiesBytes]. |
* |
* iOS note: This call is not supported. |
@@ -140,11 +140,11 @@ abstract class SecurityContext { |
void setClientAuthorities(String file, {String password}); |
/** |
- * Sets the list of authority names that a [SecureServer] will advertise |
+ * Sets the list of authority names that a [SecureServerSocket] will advertise |
* as accepted, when requesting a client certificate from a connecting |
* client. |
* |
- * Like [setClientAuthority] but takes the contents of the file. |
+ * Like [setClientAuthorities] but takes the contents of the file. |
*/ |
void setClientAuthoritiesBytes(List<int> authCertBytes, {String password}); |