List of usage examples for org.apache.thrift.transport TSSLTransportFactory.TSSLTransportParameters TSSLTransportFactory.TSSLTransportParameters
TSSLTransportFactory.TSSLTransportParameters
From source file:org.apache.cassandra.thrift.SecureTFramedTransportFactory.java
License:Apache License
public TTransport openTransport(String host, int port, Configuration conf) throws TTransportException { TSSLTransportFactory.TSSLTransportParameters tsslTransportParameters = new TSSLTransportFactory.TSSLTransportParameters(); tsslTransportParameters.setTrustStore(conf.get("ssl.truststore", null), conf.get("ssl.truststore.password", null)); TTransport transport = new TFramedTransport( TSSLTransportFactory.getClientSocket(host, port, 30000, tsslTransportParameters)); return transport; }