TLS support
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / SimpleClientInitializer.java
index bd9a911bb02ad593ebad354bbf1a3c576867f8b7..d557c49beab2243a4f2dfddc793507a98eaaf183 100644 (file)
@@ -16,8 +16,6 @@ import io.netty.handler.ssl.SslHandler;
 
 import javax.net.ssl.SSLEngine;
 
-import org.opendaylight.openflowjava.protocol.impl.core.SslContextFactory;
-
 import com.google.common.util.concurrent.SettableFuture;
 
 /** Initializes secured {@link SimpleClient} pipeline
@@ -43,7 +41,7 @@ public class SimpleClientInitializer extends ChannelInitializer<SocketChannel> {
     public void initChannel(SocketChannel ch) throws Exception {
         ChannelPipeline pipeline = ch.pipeline();
         if (secured) {
-            SSLEngine engine = SslContextFactory.getClientContext()
+            SSLEngine engine = ClientSslContextFactory.getClientContext()
                     .createSSLEngine();
             engine.setUseClientMode(true);
             pipeline.addLast("ssl", new SslHandler(engine));