| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SSLEngine sslEngine = …;
ByteBuffer inNetBuffer = …;
ByteBuffer peerAppData = …;
SSLEngineResult res = sslEngine.unwrap(inNetBuffer, peerAppData);
Based on 20 examples
SSLEngine sslEngine = …;
ByteBuffer src = …;
ByteBuffer outNetBuffer = …;
SSLEngineResult result = sslEngine.wrap(src, outNetBuffer);
Based on 20 examples
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 | |
---|---|
static enum |
An SSLEngineResult enum describing the current
handshaking state of this SSLEngine . |
static enum |
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 |
Returns the number of bytes consumed from the input buffer. |
int |
Returns the number of bytes written to the output buffer. |
SSLEngineResult.HandshakeStatus |
Gets the handshake status of this SSLEngine
operation.
|
SSLEngineResult.Status |
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, toString, 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 ByteBufferMethod Detail |
---|
public final int bytesConsumed()
public final int bytesProduced()
public final SSLEngineResult.HandshakeStatus getHandshakeStatus()
SSLEngine
operation.
public final SSLEngineResult.Status getStatus()
SSLEngine
operation.
public String toString()
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |