Code example for SSLEngine

Methods: getSession

0
 
    public SSLSender(SSLEngine engine, Sender<ByteBuffer> delegate)
    { 
        this.engine = engine;
        this.delegate = delegate;
        sslBufSize = engine.getSession().getPacketBufferSize();
        netData = ByteBuffer.allocate(sslBufSize);
        timeout = Long.getLong("qpid.ssl_timeout", 60000);
    } 
     
    public void setConnectionSettings(ConnectionSettings settings)
    { 
        this.settings = settings;
    } 
 
    public void close() 
    { 
        if (!closed.getAndSet(true))
        { 
            if (engine.isOutboundDone())
            {