// Don't encrypt the data if encryption is disabled.
else if ( session.containsAttribute( DISABLE_ENCRYPTION_ONCE ) )
{
// Remove the marker attribute because it is temporary.
session.removeAttribute( DISABLE_ENCRYPTION_ONCE );
handler.schedulePostHandshakeWriteRequest( nextFilter, writeRequest );
}
else
{
// Otherwise, encrypt the buffer.
ByteBuffer buf = ( ByteBuffer ) writeRequest.getMessage();