public class SSLEngineResult extends Object

An encapsulation of the result state produced by SSLEngine I/O calls.

A SSLEngine provides a means for establishing secure communication sessions between two peers. SSLEngine operations typically consume bytes from an input buffer and produce bytes in an output buffer. This class provides operational result values describing the state of the SSLEngine, including indications of what operations are needed to finish an ongoing handshake. Lastly, it reports the number of bytes consumed and produced as a result of this operation.

Nested Class Summary

enum SSLEngineResult.HandshakeStatus An SSLEngineResult enum describing the current handshaking state of this SSLEngine
enum SSLEngineResult.Status An SSLEngineResult enum describing the overall result of the SSLEngine operation. 

Public Constructor Summary

SSLEngineResult(SSLEngineResult.Status status, SSLEngineResult.HandshakeStatus handshakeStatus, int bytesConsumed, int bytesProduced)
Initializes a new instance of this class.

Public Method Summary

final int
Returns the number of bytes consumed from the input buffer.
final int
Returns the number of bytes written to the output buffer.
final SSLEngineResult.HandshakeStatus
Gets the handshake status of this SSLEngine operation.
final SSLEngineResult.Status
Gets the return value of this SSLEngine operation.
Returns a String representation of this object.