Code example for SSLEngineResult.HandshakeStatus

Methods: ordinal

0
 * Implementation of a secure socket channel 
 * @author Filip Hanik 
 * @version 1.0 
 */ 
 
public class SecureNioChannel extends NioChannel  { 
     
    protected ByteBuffer netInBuffer;
    protected ByteBuffer netOutBuffer;
     
    protected SSLEngine sslEngine;
     
    protected boolean initHandshakeComplete = false;
    protected HandshakeStatus initHandshakeStatus; //gets set by begin handshake
     
    protected boolean closed = false;
    protected boolean closing = false;
     
    protected NioSelectorPool pool;
     
    public SecureNioChannel(SocketChannel channel, SSLEngine engine,