javax.net.ssl
public class SSLEngineResult extends Object
wrap
or
unwrap
operation. This class conveys a possibly
intermediate result, and may ask for more input data or request
that output data be sent over a connection.
Nested Class Summary | |
---|---|
static class | SSLEngineResult.HandshakeStatus
An enumeration of possible handshake status states. |
static class | SSLEngineResult.Status
An enumeration of possible general states. |
Constructor Summary | |
---|---|
SSLEngineResult(SSLEngineResult.Status status, SSLEngineResult.HandshakeStatus handshakeStatus, int bytesConsumed, int bytesProduced)
Creates a new SSL engine result.
|
Method Summary | |
---|---|
int | bytesConsumed()
Returns the number of bytes consumed by the previous operation.
|
int | bytesProduced()
Returns the number of bytes produced by the previous operation.
|
SSLEngineResult.HandshakeStatus | getHandshakeStatus()
Returns the handshake status.
|
SSLEngineResult.Status | getStatus()
Returns the connection status.
|
String | toString() |
Parameters: status The status of the SSL connection. handshakeStatus The status of the SSL handshake. bytesConsumed The number of bytes consumed by the previous operation. bytesProduced The number of bytes produced by the previous operation.
Throws: IllegalArgumentException If either enum value is
null
, or if either integer is negative.
Returns: The number of bytes consumed.
Returns: The number of bytes produced.
Returns: The handshake status.
Returns: The connection status.