| 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 abstract class SecureServerSocket implements ServerSocket { | 6 abstract class SecureServerSocket implements ServerSocket { |
| 8 /** | 7 /** |
| 9 * Constructs a new secure server socket, binds it to a given address | 8 * Constructs a new secure server socket, binds it to a given address |
| 10 * and port, and listens on it. Incoming client connections are | 9 * and port, and listens on it. Incoming client connections are |
| 11 * promoted to secure connections, using the server certificate given by | 10 * promoted to secure connections, using the server certificate given by |
| 12 * certificate_name. The bindAddress must be given as a numeric address, | 11 * certificate_name. The bindAddress must be given as a numeric address, |
| 13 * not a host name. The certificate name is the distinguished name (DN) of | 12 * not a host name. The certificate name is the distinguished name (DN) of |
| 14 * the certificate, such as "CN=localhost" or "CN=myserver.mydomain.com". | 13 * the certificate, such as "CN=localhost" or "CN=myserver.mydomain.com". |
| 15 * The certificate is looked up in the NSS certificate database set by | 14 * The certificate is looked up in the NSS certificate database set by |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 connection.remotePort, | 68 connection.remotePort, |
| 70 connection, | 69 connection, |
| 71 _certificate_name); | 70 _certificate_name); |
| 72 _onConnectionCallback(secure_connection); | 71 _onConnectionCallback(secure_connection); |
| 73 } | 72 } |
| 74 | 73 |
| 75 ServerSocket _socket; | 74 ServerSocket _socket; |
| 76 var _onConnectionCallback; | 75 var _onConnectionCallback; |
| 77 String _certificate_name; | 76 String _certificate_name; |
| 78 } | 77 } |
| OLD | NEW |