Attempts to decode SSL/TLS network data into a plaintext
application data buffer.
<P>
An invocation of this method behaves in exactly the same manner
as the invocation:
<blockquote><pre>
{@link #unwrap(ByteBuffer, ByteBuffer [], int, int)
engine.unwrap(src, new ByteBuffer [] { dst }, 0, 1);}
</pre></blockquote>
@param src
a <code>ByteBuffer</code> containing inbound network data.
@param dst
a <code>ByteBuffer</code> to hold inbound application data.
@return an <code>SSLEngineResult</code> describing the result
of this operation.
@throws SSLException
A problem was encountered while processing the
data that caused the <code>SSLEngine</code> to abort.
See the class description for more information on
engine closure.
@throws ReadOnlyBufferException
if the <code>dst</code> buffer is read-only.
@throws IllegalArgumentException
if either <code>src</code> or <code>dst</code>
is null.
@throws IllegalStateException if the client/server mode
has not yet been set.
@see #unwrap(ByteBuffer, ByteBuffer [], int, int)
Attempts to decode SSL/TLS network data into a plaintext application data buffer. <P> An invocation of this method behaves in exactly the same manner as the invocation: <blockquote><pre> {@link #unwrap(ByteBuffer, ByteBuffer [], int, int) engine.unwrap(src, new ByteBuffer [] { dst }, 0, 1);} </pre></blockquote>
@param src a <code>ByteBuffer</code> containing inbound network data. @param dst a <code>ByteBuffer</code> to hold inbound application data. @return an <code>SSLEngineResult</code> describing the result of this operation. @throws SSLException A problem was encountered while processing the data that caused the <code>SSLEngine</code> to abort. See the class description for more information on engine closure. @throws ReadOnlyBufferException if the <code>dst</code> buffer is read-only. @throws IllegalArgumentException if either <code>src</code> or <code>dst</code> is null. @throws IllegalStateException if the client/server mode has not yet been set. @see #unwrap(ByteBuffer, ByteBuffer [], int, int)