Code example for SSLEngine

Methods: setUseClientMode

0
            } 
             
            try 
            { 
                engine = sslCtx.createSSLEngine();
                engine.setUseClientMode(true);
            } 
            catch(Exception e)
            { 
                throw new TransportException("Error creating SSL Engine", e);
            } 
        } 
         
        public SSLSender sender(Sender<ByteBuffer> delegate)
        { 
            sender = new SSLSender(engine,delegate);
            sender.setConnectionSettings(settings);
            return sender;
        } 
         
        public SSLReceiver receiver(Receiver<ByteBuffer> delegate)