Code example for SSLEngineResult.HandshakeStatus

Methods: ordinal

0
            fail("Could not get SSLEngine: no such algorithm " + e.getMessage());
        } 
        return context.createSSLEngine(host, port);
    } 
     
    class HandshakeHandler implements Runnable {
 
        private final SSLEngine engine;
 
        private final SourceChannel in;
 
        private final SinkChannel out;
 
        private final ByteBuffer EMPTY = ByteBuffer.allocate(0);
 
        @SuppressWarnings("unused") 
        private final String LOGTAG;
 
        private SSLEngineResult.HandshakeStatus status;
 
        private ByteBuffer readBuffer;