Package totalcross.net.ssl
Class SSLServer
- java.lang.Object
-
- totalcross.net.ssl.SSLCTX
-
- totalcross.net.ssl.SSLServer
-
public class SSLServer extends SSLCTX
The server context. All server connections are started within a server context.
-
-
Constructor Summary
Constructors Constructor Description SSLServer(int options, int num_sessions)Start a new server context.
-
-
-
Constructor Detail
-
SSLServer
public SSLServer(int options, int num_sessions) throws NoSuchAlgorithmExceptionStart a new server context.- Throws:
NoSuchAlgorithmException- See Also:
for details.
-
-
Method Detail
-
connect
public SSL connect(Socket socket) throws IOException, NoSuchAlgorithmException, CryptoException
Establish a new SSL connection to an SSL client. It is up to the application to establish the initial socket connection. Call dispose() when the connection is to be removed.- Parameters:
socket- [in] A reference to a totalcross.net.Socket.- Returns:
- An SSL object reference.
- Throws:
IOExceptionCryptoExceptionNoSuchAlgorithmException
-
-