Language

CertificateFactory.GenerateCertificateAsync(Stream) Method

Definition

Asynchronously generates a certificate from the data in the input stream.

public System.Threading.Tasks.Task<Java.Security.Cert.Certificate?> GenerateCertificateAsync(System.IO.Stream? inStream);
member this.GenerateCertificateAsync : System.IO.Stream -> System.Threading.Tasks.Task<Java.Security.Cert.Certificate>

Parameters

inStream
Stream

The input stream that contains the certificate data.

Returns

A task whose result is the certificate initialized with the data from inStream.

Remarks

This .NET method runs GenerateCertificate(Stream) through Task.Run. The synchronous method reads the stream; this wrapper does not use asynchronous stream reads.

See the .NET async wrapper generator source.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to