Code example for SSLEngine

Methods: getSession

0
        this.settings = con.getConnectionSettings();
        if (settings.isUseSSL())
        { 
            sslLayer = new SSLSecurityLayer();
        } 
        if (settings.isUseSASLEncryption())
        { 
            saslLayer = new SASLSecurityLayer();
        }         
         
    } 
     
    public Sender<ByteBuffer> sender(Sender<ByteBuffer> delegate)
    { 
        Sender<ByteBuffer> sender = delegate;
         
        if (settings.isUseSSL())
        { 
            sender = sslLayer.sender(sender);
        }