engine.setEnabledProtocols(new String[] {"TLSv1.1"});
logger.debug("Using TLSv1.1");
}
engine.setUseClientMode(true);
RiakSecurityDecoder decoder = new RiakSecurityDecoder(engine, username, password);
c.pipeline().addFirst(decoder);
try
{
DefaultPromise<Void> promise = decoder.getPromise();
promise.await();
if (promise.isSuccess())
{
logger.debug("Auth succeeded; {}:{}", remoteAddress, port);