{
final InetSocketAddress addr = args.addr;
TServerTransport serverTransport;
try
{
final EncryptionOptions clientEnc = DatabaseDescriptor.getClientEncryptionOptions();
if(EncryptionOptions.InternodeEncryption.all == clientEnc.internode_encryption)
{
logger.info("enabling encrypted thrift connections between client and server");
TSSLTransportParameters params = new TSSLTransportParameters(clientEnc.protocol, clientEnc.cipher_suites);
params.setKeyStore(clientEnc.keystore, clientEnc.keystore_password);