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, toString
public TinyTLSServer(int port) throws java.io.IOException
port
- port of the TLS Serverjava.io.IOException
public 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.IOException
public 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.ServerSocket
java.io.IOException
public java.net.Socket accept(long a_forceCloseAfterMS) throws java.io.IOException
java.io.IOException
Copyright © 2023. All rights reserved.