Package totalcross.net.ssl
Class SSLSocketFactory
- java.lang.Object
-
- totalcross.net.SocketFactory
-
- totalcross.net.ssl.SSLSocketFactory
-
public abstract class SSLSocketFactory extends SocketFactory
SSLSocketFactory creates SSLSockets.
-
-
Constructor Summary
Constructors Constructor Description SSLSocketFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket(java.lang.String host, int port)Creates a socket and connects it to the specified remote host at the specified remote port.abstract SocketcreateSocket(java.lang.String host, int port, int timeout)Creates a socket and connects it to the specified remote host at the specified remote port.-
Methods inherited from class totalcross.net.SocketFactory
getDefault
-
-
-
-
Method Detail
-
createSocket
public Socket createSocket(java.lang.String host, int port) throws UnknownHostException, IOException
Description copied from class:SocketFactoryCreates a socket and connects it to the specified remote host at the specified remote port. This socket is configured using the socket options established for this factory.- Overrides:
createSocketin classSocketFactory- Parameters:
host- the server hostport- the server port- Returns:
- the Socket
- Throws:
UnknownHostException- if the host is not knownIOException- if an I/O error occurs when creating the socket- See Also:
Socket(String, int)
-
createSocket
public abstract Socket createSocket(java.lang.String host, int port, int timeout) throws UnknownHostException, IOException
Description copied from class:SocketFactoryCreates a socket and connects it to the specified remote host at the specified remote port. This socket is configured using the socket options established for this factory.- Overrides:
createSocketin classSocketFactory- Parameters:
host- the server hostport- the server port- Returns:
- the Socket
- Throws:
UnknownHostException- if the host is not knownIOException- if an I/O error occurs when creating the socket- See Also:
Socket(String, int)
-
-