|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.5.0
javax.net.ssl
|
|||||||||||||||||||||||||
| Nested Class Summary | |
|---|---|
static class |
SSLEngineResult.HandshakeStatus
An SSLEngineResult enum describing the current
handshaking state of this SSLEngine. |
static class |
SSLEngineResult.Status
An SSLEngineResult enum describing the overall result
of the SSLEngine operation. |
| Constructor Summary | |
|---|---|
SSLEngineResult(SSLEngineResult.Status status,
SSLEngineResult.HandshakeStatus handshakeStatus,
int bytesConsumed,
int bytesProduced)
Initializes a new instance of this class. |
|
| Method Summary | |
|---|---|
int |
bytesConsumed()
Returns the number of bytes consumed from the input buffer. |
int |
bytesProduced()
Returns the number of bytes written to the output buffer. |
SSLEngineResult.HandshakeStatus |
getHandshakeStatus()
Gets the handshake status of this SSLEngine
operation. |
SSLEngineResult.Status |
getStatus()
Gets the return value of this SSLEngine operation. |
String |
toString()
Returns a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SSLEngineResult(SSLEngineResult.Status status, SSLEngineResult.HandshakeStatus handshakeStatus, int bytesConsumed, int bytesProduced)
status - the return value of the operation.handshakeStatus - the current handshaking status.bytesConsumed - the number of bytes consumed from the source ByteBufferbytesProduced - the number of bytes placed into the destination ByteBuffer
IllegalArgumentException - if the status or handshakeStatus
arguments are null, or if <bytesConsumed or
bytesProduced is negative.| Method Detail |
|---|
public final SSLEngineResult.Status getStatus()
SSLEngine operation.
public final SSLEngineResult.HandshakeStatus getHandshakeStatus()
SSLEngine
operation.
public final int bytesConsumed()
public final int bytesProduced()
public String toString()