Code example for SSLEngine

Methods: getSession

0
    public SSLReceiver(SSLEngine engine, Receiver<ByteBuffer> delegate,SSLSender sender)
    { 
        this.engine = engine;
        this.delegate = delegate;
        this.sender = sender;
        this.sslBufSize = engine.getSession().getApplicationBufferSize();
        appData = ByteBuffer.allocate(sslBufSize);
        localBuffer = ByteBuffer.allocate(sslBufSize);
        notificationToken = sender.getNotificationToken();
    } 
 
    public void setConnectionSettings(ConnectionSettings settings)
    { 
        this.settings = settings;
    } 
     
    public void closed() 
    { 
       delegate.closed();
    }