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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 Uint8List addr, | 1357 Uint8List addr, |
1358 int port, | 1358 int port, |
1359 bool is_server, | 1359 bool is_server, |
1360 String certificateName, | 1360 String certificateName, |
1361 bool requestClientCertificate, | 1361 bool requestClientCertificate, |
1362 bool requireClientCertificate, | 1362 bool requireClientCertificate, |
1363 bool sendClientCertificate, | 1363 bool sendClientCertificate, |
1364 Uint8List protocols); | 1364 Uint8List protocols); |
1365 void destroy(); | 1365 void destroy(); |
1366 void handshake(); | 1366 void handshake(); |
| 1367 String selectedProtocol(); |
1367 void rehandshake(); | 1368 void rehandshake(); |
1368 void renegotiate(bool useSessionCache, | 1369 void renegotiate(bool useSessionCache, |
1369 bool requestClientCertificate, | 1370 bool requestClientCertificate, |
1370 bool requireClientCertificate); | 1371 bool requireClientCertificate); |
1371 void init(); | 1372 void init(); |
1372 X509Certificate get peerCertificate; | 1373 X509Certificate get peerCertificate; |
1373 int processBuffer(int bufferIndex); | 1374 int processBuffer(int bufferIndex); |
1374 void registerBadCertificateCallback(Function callback); | 1375 void registerBadCertificateCallback(Function callback); |
1375 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); | 1376 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); |
1376 int _pointer(); | 1377 int _pointer(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 /** | 1423 /** |
1423 * An exception that happens in the handshake phase of establishing | 1424 * An exception that happens in the handshake phase of establishing |
1424 * a secure network connection, when looking up or verifying a | 1425 * a secure network connection, when looking up or verifying a |
1425 * certificate. | 1426 * certificate. |
1426 */ | 1427 */ |
1427 class CertificateException extends TlsException { | 1428 class CertificateException extends TlsException { |
1428 const CertificateException([String message = "", | 1429 const CertificateException([String message = "", |
1429 OSError osError = null]) | 1430 OSError osError = null]) |
1430 : super._("CertificateException", message, osError); | 1431 : super._("CertificateException", message, osError); |
1431 } | 1432 } |
OLD | NEW |