1 18 19 package org.apache.activemq.transport.tcp; 20 21 import java.io.IOException ; 22 import java.net.InetAddress ; 23 import java.net.ServerSocket ; 24 import java.net.Socket ; 25 26 import javax.net.ssl.SSLServerSocketFactory; 27 28 public class StubSSLSocketFactory extends SSLServerSocketFactory { 29 30 private final ServerSocket retServerSocket; 31 32 public StubSSLSocketFactory(ServerSocket returnServerSocket) { 33 retServerSocket = returnServerSocket; 34 } 35 36 public ServerSocket createServerSocket(int arg0) throws IOException { 37 return retServerSocket; 38 } 39 40 public ServerSocket createServerSocket(int arg0, int arg1) 41 throws IOException { 42 return retServerSocket; 43 } 44 45 public ServerSocket createServerSocket(int arg0, int arg1, InetAddress arg2) 46 throws IOException { 47 return retServerSocket; 48 } 49 50 52 public String [] getDefaultCipherSuites() { 53 return null; 54 } 55 56 public String [] getSupportedCipherSuites() { 57 return null; 58 } 59 } 60 | Popular Tags |