Java.Security.ICertificate.Encode Method
Encodes this certificate to an output stream.

Syntax

[Android.Runtime.Register("encode", "(Ljava/io/OutputStream;)V", "GetEncode_Ljava_io_OutputStream_Handler:Java.Security.ICertificateInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Encode (System.IO.Stream stream)

See Also

ICertificate.Decode(System.IO.Stream)

Parameters

stream
the OutputStream to encode this certificate to.

Exceptions

TypeReason
Java.Security.KeyExceptionif certificate information is incomplete or incorrect.
Java.IO.IOExceptionif an exception is thrown by accessing the provided stream.

Remarks

Encodes this certificate to an output stream. The ICertificate.Decode(System.IO.Stream) method must be able to decode the format written by this method.

[Android Documentation]

Requirements

Namespace: Java.Security
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1