Package org.red5.client.net.ssl
Class SslSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- org.red5.client.net.ssl.SslSocketFactory
-
public class SslSocketFactory extends SocketFactory
Simple Socket factory to create sockets with or without SSL enabled. If SSL enabled a "bogus" SSL Context is used (suitable for test purposes)- Author:
- The Apache MINA Project (dev@mina.apache.org)
-
-
Constructor Summary
Constructors Constructor Description SslSocketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket(String arg1, int arg2)SocketcreateSocket(String arg1, int arg2, InetAddress arg3, int arg4)SocketcreateSocket(InetAddress arg1, int arg2)SocketcreateSocket(InetAddress arg1, int arg2, InetAddress arg3, int arg4)static SocketFactorygetSocketFactory()static booleanisSslEnabled()static voidsetSslEnabled(boolean newSslEnabled)-
Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
-
-
-
-
Method Detail
-
createSocket
public Socket createSocket(String arg1, int arg2) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(String arg1, int arg2, InetAddress arg3, int arg4) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(InetAddress arg1, int arg2) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress arg1, int arg2, InetAddress arg3, int arg4) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
getSocketFactory
public static SocketFactory getSocketFactory()
-
isSslEnabled
public static boolean isSslEnabled()
-
setSslEnabled
public static void setSslEnabled(boolean newSslEnabled)
-
-