Javax.Net.Ssl.SSLEngine.Wrap Method
Encodes the outgoing application data buffers into the network data buffer.

Syntax

[Android.Runtime.Register("wrap", "([Ljava/nio/ByteBuffer;IILjava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;", "GetWrap_arrayLjava_nio_ByteBuffer_IILjava_nio_ByteBuffer_Handler")]
public abstract SSLEngineResult Wrap (Java.Nio.ByteBuffer[] srcs, int offset, int length, Java.Nio.ByteBuffer dst)

Parameters

srcs
the array of source buffers of outgoing application data.
offset
the offset in the array of source buffers from which data is to be retrieved.
length
the maximum number of source buffers to be used.
dst
the destination buffer for network data.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Javax.Net.Ssl.SSLExceptionif a problem occurred while processing the data.
Java.Lang.IndexOutOfBoundsExceptionif length is greater than srcs.length - offset.
Java.Nio.ReadOnlyBufferExceptionif the destination buffer is readonly.
Java.Lang.IllegalArgumentExceptionif srcs, dst, or one the entries in srcs is null.
Java.Lang.IllegalStateExceptionif the engine does not have all the needed settings (e.g. client/server mode not set).

Remarks

Encodes the outgoing application data buffers into the network data buffer. If a handshake has not been started yet, it will automatically be started.

[Android Documentation]

Requirements

Namespace: Javax.Net.Ssl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1