| Index: sdk/lib/io/security_context.dart
|
| diff --git a/sdk/lib/io/security_context.dart b/sdk/lib/io/security_context.dart
|
| index 5b666672845764e5949b0c25467292ce9708ec94..76ca8e654e12314018d8c65a119cb4c0e227b914 100644
|
| --- a/sdk/lib/io/security_context.dart
|
| +++ b/sdk/lib/io/security_context.dart
|
| @@ -80,12 +80,28 @@ abstract class SecurityContext {
|
| /**
|
| * Sets the chain of X509 certificates served by [SecureServer]
|
| * when making secure connections, including the server certificate.
|
| - * [file] is an PEM file containing X509 certificates, starting with
|
| + *
|
| + * [file] is a PEM file containing X509 certificates, starting with
|
| * the root authority and intermediate authorities forming the signed
|
| * chain to the server certificate, and ending with the server certificate.
|
| * The private key for the server certificate is set by [usePrivateKey].
|
| + *
|
| + * The function returns a [Future] that completes when the certificate chain
|
| + * has been set.
|
| + */
|
| + Future useCertificateChain(String file);
|
| +
|
| + /**
|
| + * Sets the chain of X509 certificates served by [SecureServer]
|
| + * when making secure connections, including the server certificate.
|
| + *
|
| + * [chainBytes] is the contents of a PEM file containing X509 certificates,
|
| + * starting with the root authority and intermediate authorities forming the
|
| + * signed chain to the server certificate, and ending with the server
|
| + * certificate. The private key for the server certificate is set by
|
| + * [usePrivateKey].
|
| */
|
| - void useCertificateChain(String file);
|
| + void useCertificateChainAsBytes(List<int> chainBytes);
|
|
|
| /**
|
| * Sets the list of authority names that a [SecureServer] will advertise
|
|
|