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);
            } 
             
            this.sender = new SSLSender(engine,new IoSender(this, 2*writeBufferSize, timeout));
            this.endpoint = binding.endpoint(sender);
            this.receiver = new IoReceiver(this, new SSLReceiver(engine,binding.receiver(endpoint),(SSLSender)sender),
                                           2*readBufferSize, timeout);
             
            log.info("SSL Sender and Receiver initiated"); 
        } 
        else 
        {