| 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 |
| 5 /** | 7 /** |
| 6 * SecureSocket provides a secure (SSL or TLS) client connection to a server. | 8 * SecureSocket provides a secure (SSL or TLS) client connection to a server. |
| 7 * The certificate provided by the server is checked | 9 * The certificate provided by the server is checked |
| 8 * using the certificate database provided in setCertificateDatabase. | 10 * using the certificate database provided in setCertificateDatabase. |
| 9 */ | 11 */ |
| 10 abstract class SecureSocket implements Socket { | 12 abstract class SecureSocket implements Socket { |
| 11 /** | 13 /** |
| 12 * Constructs a new secure client socket and connect it to the given | 14 * Constructs a new secure client socket and connect it to the given |
| 13 * host on the given port. The returned socket is not yet connected | 15 * host on the given port. The returned socket is not yet connected |
| 14 * but ready for registration of callbacks. If sendClientCertificate is | 16 * but ready for registration of callbacks. If sendClientCertificate is |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 void destroy(); | 670 void destroy(); |
| 669 void handshake(); | 671 void handshake(); |
| 670 void init(); | 672 void init(); |
| 671 X509Certificate get peerCertificate; | 673 X509Certificate get peerCertificate; |
| 672 int processBuffer(int bufferIndex); | 674 int processBuffer(int bufferIndex); |
| 673 void registerBadCertificateCallback(Function callback); | 675 void registerBadCertificateCallback(Function callback); |
| 674 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); | 676 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); |
| 675 | 677 |
| 676 List<_ExternalBuffer> get buffers; | 678 List<_ExternalBuffer> get buffers; |
| 677 } | 679 } |
| OLD | NEW |