OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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; | |
6 | |
7 /** | 5 /** |
8 * SecureSocket provides a secure (SSL or TLS) client connection to a server. | 6 * SecureSocket provides a secure (SSL or TLS) client connection to a server. |
9 * The certificate provided by the server is checked | 7 * The certificate provided by the server is checked |
10 * using the certificate database provided in setCertificateDatabase. | 8 * using the certificate database provided in setCertificateDatabase. |
11 */ | 9 */ |
12 abstract class SecureSocket implements Socket { | 10 abstract class SecureSocket implements Socket { |
13 /** | 11 /** |
14 * Constructs a new secure client socket and connect it to the given | 12 * Constructs a new secure client socket and connect it to the given |
15 * host on the given port. The returned socket is not yet connected | 13 * host on the given port. The returned socket is not yet connected |
16 * but ready for registration of callbacks. | 14 * but ready for registration of callbacks. |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 bool is_server, | 561 bool is_server, |
564 String certificateName); | 562 String certificateName); |
565 void destroy(); | 563 void destroy(); |
566 void handshake(); | 564 void handshake(); |
567 void init(); | 565 void init(); |
568 int processBuffer(int bufferIndex); | 566 int processBuffer(int bufferIndex); |
569 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); | 567 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); |
570 | 568 |
571 List<_ExternalBuffer> get buffers; | 569 List<_ExternalBuffer> get buffers; |
572 } | 570 } |
OLD | NEW |