public class TinyTLSServer
extends java.net.ServerSocket
| Modifier and Type | Field and Description |
|---|---|
private JAPCertificate |
m_Certificate |
private JAPCertificate |
m_DSSCertificate |
private MyDSAPrivateKey |
m_DSSKey |
private IMyPrivateKey |
m_PrivateKey |
private JAPCertificate |
m_RSACertificate |
private MyRSAPrivateKey |
m_RSAKey |
private TinyTLSServerSocket |
tls |
| 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, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringprivate JAPCertificate m_Certificate
private IMyPrivateKey m_PrivateKey
private MyDSAPrivateKey m_DSSKey
private MyRSAPrivateKey m_RSAKey
private JAPCertificate m_DSSCertificate
private JAPCertificate m_RSACertificate
private TinyTLSServerSocket tls
public 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.