/** * Adds channel handlers that perform encryption / decryption of data using SASL. * * @param channel The channel. * @param backend The SASL backend. * @param maxOutboundBlockSize Max size in bytes of outgoing encrypted blocks, to control * memory usage. */ static void addToChannel( Channel channel, SaslEncryptionBackend backend, int maxOutboundBlockSize) { channel.pipeline() .addFirst(ENCRYPTION_HANDLER_NAME, new EncryptionHandler(backend, maxOutboundBlockSize)) .addFirst("saslDecryption", new DecryptionHandler(backend)) .addFirst("saslFrameDecoder", NettyUtils.createFrameDecoder()); }
/** * Adds channel handlers that perform encryption / decryption of data using SASL. * * @param channel The channel. * @param backend The SASL backend. * @param maxOutboundBlockSize Max size in bytes of outgoing encrypted blocks, to control * memory usage. */ static void addToChannel( Channel channel, SaslEncryptionBackend backend, int maxOutboundBlockSize) { channel.pipeline() .addFirst(ENCRYPTION_HANDLER_NAME, new EncryptionHandler(backend, maxOutboundBlockSize)) .addFirst("saslDecryption", new DecryptionHandler(backend)) .addFirst("saslFrameDecoder", NettyUtils.createFrameDecoder()); }
/** * Adds channel handlers that perform encryption / decryption of data using SASL. * * @param channel The channel. * @param backend The SASL backend. * @param maxOutboundBlockSize Max size in bytes of outgoing encrypted blocks, to control * memory usage. */ static void addToChannel( Channel channel, SaslEncryptionBackend backend, int maxOutboundBlockSize) { channel.pipeline() .addFirst(ENCRYPTION_HANDLER_NAME, new EncryptionHandler(backend, maxOutboundBlockSize)) .addFirst("saslDecryption", new DecryptionHandler(backend)) .addFirst("saslFrameDecoder", NettyUtils.createFrameDecoder()); }
/** * Adds channel handlers that perform encryption / decryption of data using SASL. * * @param channel The channel. * @param backend The SASL backend. * @param maxOutboundBlockSize Max size in bytes of outgoing encrypted blocks, to control * memory usage. */ static void addToChannel( Channel channel, SaslEncryptionBackend backend, int maxOutboundBlockSize) { channel.pipeline() .addFirst(ENCRYPTION_HANDLER_NAME, new EncryptionHandler(backend, maxOutboundBlockSize)) .addFirst("saslDecryption", new DecryptionHandler(backend)) .addFirst("saslFrameDecoder", NettyUtils.createFrameDecoder()); }