| 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. If sendClientCertificate is | 14 * but ready for registration of callbacks. If sendClientCertificate is |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 void destroy(); | 668 void destroy(); |
| 671 void handshake(); | 669 void handshake(); |
| 672 void init(); | 670 void init(); |
| 673 X509Certificate get peerCertificate; | 671 X509Certificate get peerCertificate; |
| 674 int processBuffer(int bufferIndex); | 672 int processBuffer(int bufferIndex); |
| 675 void registerBadCertificateCallback(Function callback); | 673 void registerBadCertificateCallback(Function callback); |
| 676 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); | 674 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); |
| 677 | 675 |
| 678 List<_ExternalBuffer> get buffers; | 676 List<_ExternalBuffer> get buffers; |
| 679 } | 677 } |
| OLD | NEW |