An object of this type is returned by the wrap( ) and unwrap( ) methods of an SSLEngine . Use the methods of this object to determine how much data was consumed and produced and to obtain the Status of the operation and the HandshakeStatus of the connection. These two nested enumerated types return important values. Correct operation of an SSLEngine requires that your code respond correctly to the Status and HandshakeStatus results. public class SSLEngineResult { // Public Constructors public SSLEngineResult (SSLEngineResult.Status status , SSLEngineResult. HandshakeStatus handshakeStatus , int bytesConsumed , int bytesProduced ); // Nested Types public enum HandshakeStatus ; public enum Status ; // Public Instance Methods public final int bytesConsumed ( ); public final int bytesProduced ( ); public final SSLEngineResult.HandshakeStatus getHandshakeStatus ( ); public final SSLEngineResult.Status getStatus ( ); // Public Methods Overriding Object public String toString ( ); } Returned BySSLEngine.{unwrap( ) , wrap( )} |