| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dart.io; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A high-level class for communicating securely over a TCP socket, using | 8 * A high-level class for communicating securely over a TCP socket, using |
| 9 * TLS and SSL. The [SecureSocket] exposes both a [Stream] and an | 9 * TLS and SSL. The [SecureSocket] exposes both a [Stream] and an |
| 10 * [IOSink] interface, making it ideal for using together with | 10 * [IOSink] interface, making it ideal for using together with |
| (...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 List data; // This will be a ExternalByteArray, backed by C allocated data. | 1187 List data; // This will be a ExternalByteArray, backed by C allocated data. |
| 1188 int start; | 1188 int start; |
| 1189 int end; | 1189 int end; |
| 1190 final size; | 1190 final size; |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 | 1193 |
| 1194 abstract class _SecureFilter { | 1194 abstract class _SecureFilter { |
| 1195 external factory _SecureFilter(); | 1195 external factory _SecureFilter(); |
| 1196 | 1196 |
| 1197 external static SendPort _newServicePort(); | |
| 1198 | |
| 1199 void connect(String hostName, | 1197 void connect(String hostName, |
| 1200 Uint8List addr, | 1198 Uint8List addr, |
| 1201 int port, | 1199 int port, |
| 1202 bool is_server, | 1200 bool is_server, |
| 1203 String certificateName, | 1201 String certificateName, |
| 1204 bool requestClientCertificate, | 1202 bool requestClientCertificate, |
| 1205 bool requireClientCertificate, | 1203 bool requireClientCertificate, |
| 1206 bool sendClientCertificate); | 1204 bool sendClientCertificate); |
| 1207 void destroy(); | 1205 void destroy(); |
| 1208 void handshake(); | 1206 void handshake(); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 /** | 1264 /** |
| 1267 * An exception that happens in the handshake phase of establishing | 1265 * An exception that happens in the handshake phase of establishing |
| 1268 * a secure network connection, when looking up or verifying a | 1266 * a secure network connection, when looking up or verifying a |
| 1269 * certificate. | 1267 * certificate. |
| 1270 */ | 1268 */ |
| 1271 class CertificateException extends TlsException { | 1269 class CertificateException extends TlsException { |
| 1272 const CertificateException([String message = "", | 1270 const CertificateException([String message = "", |
| 1273 OSError osError = null]) | 1271 OSError osError = null]) |
| 1274 : super._("CertificateException", message, osError); | 1272 : super._("CertificateException", message, osError); |
| 1275 } | 1273 } |
| OLD | NEW |