public class TinyTLSServer
extends java.net.ServerSocket
| Constructor and Description |
|---|
TinyTLSServer(int port)
Constructor
|
TinyTLSServer(int port,
int backlog,
java.net.InetAddress bindAddress)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
accept() |
java.net.Socket |
accept(long a_forceCloseAfterMS) |
void |
setDSSParameters(JAPCertificate cert,
MyDSAPrivateKey key)
sets DSS parameters
|
void |
setRSAParameters(JAPCertificate cert,
MyRSAPrivateKey key)
sets RSA parameters
|
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic TinyTLSServer(int port)
throws java.io.IOException
port - port of the TLS Serverjava.io.IOExceptionpublic TinyTLSServer(int port,
int backlog,
java.net.InetAddress bindAddress)
throws java.io.IOException
port - port of the TLS Serverbacklog - the listen backlogbindAddress - the local InetAddress the server will bind tojava.io.IOExceptionpublic void setDSSParameters(JAPCertificate cert, MyDSAPrivateKey key)
cert - certificatekey - private keypublic void setRSAParameters(JAPCertificate cert, MyRSAPrivateKey key)
cert - certificatekey - private keypublic java.net.Socket accept()
throws java.io.IOException
accept in class java.net.ServerSocketjava.io.IOExceptionpublic java.net.Socket accept(long a_forceCloseAfterMS)
throws java.io.IOException
java.io.IOExceptionCopyright © 2023. All rights reserved.