anon.tor.tinytls
Class TinyTLSServer
java.lang.Object
java.net.ServerSocket
anon.tor.tinytls.TinyTLSServer
- public class TinyTLSServer
- extends java.net.ServerSocket
- Author:
- stefan
Fields inherited from class java.net.ServerSocket |
|
Methods inherited from class java.net.ServerSocket |
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_Certificate
private JAPCertificate m_Certificate
m_PrivateKey
private IMyPrivateKey m_PrivateKey
m_DSSKey
private MyDSAPrivateKey m_DSSKey
m_RSAKey
private MyRSAPrivateKey m_RSAKey
m_DSSCertificate
private JAPCertificate m_DSSCertificate
m_RSACertificate
private JAPCertificate m_RSACertificate
tls
private TinyTLSServerSocket tls
TinyTLSServer
public TinyTLSServer(int port)
throws java.io.IOException
- Constructor
- Parameters:
port
- port of the TLS Server
- Throws:
java.io.IOException
setDSSParameters
public void setDSSParameters(JAPCertificate cert,
MyDSAPrivateKey key)
- sets DSS parameters
- Parameters:
cert
- certificatekey
- private key
setRSAParameters
public void setRSAParameters(JAPCertificate cert,
MyRSAPrivateKey key)
- sets RSA parameters
- Parameters:
cert
- certificatekey
- private key
accept
public java.net.Socket accept()
throws java.io.IOException
- Throws:
java.io.IOException