javax.net.ssl
Class SSLEngineResult.Status

java.lang.Object
  extended by java.lang.Enum
      extended by javax.net.ssl.SSLEngineResult.Status
All Implemented Interfaces:
Comparable, Serializable
Enclosing class:
SSLEngineResult

public static class SSLEngineResult.Status
extends Enum

An SSLEngineResult enum describing the overall result of the SSLEngine operation.

See Also:
Serialized Form

Field Summary
static SSLEngineResult.Status BUFFER_OVERFLOW
          The SSLEngine was not able to process the operation because there are not enough bytes available in the destination buffer to hold the result.
static SSLEngineResult.Status BUFFER_UNDERFLOW
          The SSLEngine was not able to unwrap the incoming data because there were not enough source bytes available to make a complete packet.
static SSLEngineResult.Status CLOSED
          The operation just closed this side of the SSLEngine, or the operation could not be completed because it was already closed.
static SSLEngineResult.Status OK
          The SSLEngine encountered no problems processing this request, and no additional state information is available.
 
Constructor Summary
SSLEngineResult.Status()
           
 
Method Summary
static SSLEngineResult.Status valueOf(String name)
           
static SSLEngineResult.Status[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

BUFFER_UNDERFLOW

public static final SSLEngineResult.Status BUFFER_UNDERFLOW
The SSLEngine was not able to unwrap the incoming data because there were not enough source bytes available to make a complete packet.

Repeat the call once more bytes are available.


BUFFER_OVERFLOW

public static final SSLEngineResult.Status BUFFER_OVERFLOW
The SSLEngine was not able to process the operation because there are not enough bytes available in the destination buffer to hold the result.

Repeat the call once more bytes are available.

See Also:
SSLSession.getPacketBufferSize(), SSLSession.getApplicationBufferSize()

OK

public static final SSLEngineResult.Status OK
The SSLEngine encountered no problems processing this request, and no additional state information is available.


CLOSED

public static final SSLEngineResult.Status CLOSED
The operation just closed this side of the SSLEngine, or the operation could not be completed because it was already closed.

Constructor Detail

SSLEngineResult.Status

public SSLEngineResult.Status()
Method Detail

values

public static final SSLEngineResult.Status[] values()

valueOf

public static SSLEngineResult.Status valueOf(String name)