Index: sdk/lib/io/security_context.dart |
diff --git a/sdk/lib/io/security_context.dart b/sdk/lib/io/security_context.dart |
index 48e8111463be3a087fd4f6f71540f088ad08f490..0842791708cee97fdda6316777229c6060a70cfe 100644 |
--- a/sdk/lib/io/security_context.dart |
+++ b/sdk/lib/io/security_context.dart |
@@ -8,7 +8,7 @@ part of dart.io; |
* The object containing the certificates to trust when making |
* 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 |
* as an argument to their connect and bind methods. |
* |
@@ -40,10 +40,23 @@ abstract class SecurityContext { |
* [keyFile] is a PEM file containing an encrypted |
* private key, encrypted with [password]. An unencrypted file can be |
* used, but this is not usual. |
+ * |
+ * This function is deprecated. Use [usePrivateKeyBytes] instead. |
kevmoo
2016/01/25 23:49:29
Please put the deprecation warning at the top of t
zra
2016/01/25 23:59:38
Done.
|
*/ |
+ @deprecated |
void usePrivateKey(String keyFile, {String password}); |
/** |
+ * Sets the private key for a server certificate or client certificate. |
kevmoo
2016/01/25 23:49:29
Add a newline here - https://www.dartlang.org/effe
zra
2016/01/25 23:59:38
Done.
|
+ * A secure connection using this SecurityContext will use this key with |
+ * the server or client certificate to sign and decrypt messages. |
+ * [keyBytes] is the contents of a PEM file containing an encrypted |
+ * private key, encrypted with [password]. An unencrypted file can be |
+ * used, but this is not usual. |
+ */ |
+ void usePrivateKeyBytes(List<int> keyBytes, {String password}); |
+ |
+ /** |
* Sets the set of trusted X509 certificates used by [SecureSocket] |
* client connections, when connecting to a secure server. |
* |