OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of "dart:io"; | 5 part of "io.dart"; |
6 | 6 |
7 /** | 7 /** |
8 * The object containing the certificates to trust when making | 8 * The object containing the certificates to trust when making |
9 * a secure client connection, and the certificate chain and | 9 * a secure client connection, and the certificate chain and |
10 * private key to serve from a secure server. | 10 * private key to serve from a secure server. |
11 * | 11 * |
12 * The [SecureSocket] and [SecureServerSocket] classes take a SecurityContext | 12 * The [SecureSocket] and [SecureServerSocket] classes take a SecurityContext |
13 * as an argument to their connect and bind methods. | 13 * as an argument to their connect and bind methods. |
14 * | 14 * |
15 * Certificates and keys can be added to a SecurityContext from either PEM | 15 * Certificates and keys can be added to a SecurityContext from either PEM |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 } | 260 } |
261 | 261 |
262 if (bytes.length >= (1 << 13)) { | 262 if (bytes.length >= (1 << 13)) { |
263 throw new ArgumentError( | 263 throw new ArgumentError( |
264 'The maximum message length supported is 2^13-1.'); | 264 'The maximum message length supported is 2^13-1.'); |
265 } | 265 } |
266 | 266 |
267 return new Uint8List.fromList(bytes); | 267 return new Uint8List.fromList(bytes); |
268 } | 268 } |
269 } | 269 } |
OLD | NEW |