public class SlowSSLSocket extends SSLSocket
Constructor and Description |
---|
SlowSSLSocket(SSLSocket sock,
int cps)
Wrap an SSLSocket with slow input and output streams
|
getHandshakeSession, getSSLParameters, setSSLParameters
setPerformancePreferences, setSocketImplFactory
public SlowSSLSocket(SSLSocket sock, int cps)
sock
- SSLSocket to be wrappedcps
- characters per second to emulatepublic OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
public void addHandshakeCompletedListener(HandshakeCompletedListener arg0)
addHandshakeCompletedListener
in class SSLSocket
public boolean getEnableSessionCreation()
getEnableSessionCreation
in class SSLSocket
public String[] getEnabledCipherSuites()
getEnabledCipherSuites
in class SSLSocket
public String[] getEnabledProtocols()
getEnabledProtocols
in class SSLSocket
public boolean getNeedClientAuth()
getNeedClientAuth
in class SSLSocket
public SSLSession getSession()
getSession
in class SSLSocket
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocket
public String[] getSupportedProtocols()
getSupportedProtocols
in class SSLSocket
public boolean getUseClientMode()
getUseClientMode
in class SSLSocket
public boolean getWantClientAuth()
getWantClientAuth
in class SSLSocket
public void removeHandshakeCompletedListener(HandshakeCompletedListener arg0)
removeHandshakeCompletedListener
in class SSLSocket
public void setEnableSessionCreation(boolean arg0)
setEnableSessionCreation
in class SSLSocket
public void setEnabledCipherSuites(String[] arg0)
setEnabledCipherSuites
in class SSLSocket
public void setEnabledProtocols(String[] arg0)
setEnabledProtocols
in class SSLSocket
public void setNeedClientAuth(boolean arg0)
setNeedClientAuth
in class SSLSocket
public void setUseClientMode(boolean arg0)
setUseClientMode
in class SSLSocket
public void setWantClientAuth(boolean arg0)
setWantClientAuth
in class SSLSocket
public void startHandshake() throws IOException
startHandshake
in class SSLSocket
IOException
public void bind(SocketAddress bindpoint) throws IOException
bind
in class Socket
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
public void connect(SocketAddress endpoint, int timeout) throws IOException
connect
in class Socket
IOException
public void connect(SocketAddress endpoint) throws IOException
connect
in class Socket
IOException
public SocketChannel getChannel()
getChannel
in class Socket
public InetAddress getInetAddress()
getInetAddress
in class Socket
public boolean getKeepAlive() throws SocketException
getKeepAlive
in class Socket
SocketException
public InetAddress getLocalAddress()
getLocalAddress
in class Socket
public int getLocalPort()
getLocalPort
in class Socket
public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class Socket
public boolean getOOBInline() throws SocketException
getOOBInline
in class Socket
SocketException
public int getReceiveBufferSize() throws SocketException
getReceiveBufferSize
in class Socket
SocketException
public SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class Socket
public boolean getReuseAddress() throws SocketException
getReuseAddress
in class Socket
SocketException
public int getSendBufferSize() throws SocketException
getSendBufferSize
in class Socket
SocketException
public int getSoLinger() throws SocketException
getSoLinger
in class Socket
SocketException
public int getSoTimeout() throws SocketException
getSoTimeout
in class Socket
SocketException
public boolean getTcpNoDelay() throws SocketException
getTcpNoDelay
in class Socket
SocketException
public int getTrafficClass() throws SocketException
getTrafficClass
in class Socket
SocketException
public boolean isConnected()
isConnected
in class Socket
public boolean isInputShutdown()
isInputShutdown
in class Socket
public boolean isOutputShutdown()
isOutputShutdown
in class Socket
public void sendUrgentData(int data) throws IOException
sendUrgentData
in class Socket
IOException
public void setKeepAlive(boolean on) throws SocketException
setKeepAlive
in class Socket
SocketException
public void setOOBInline(boolean on) throws SocketException
setOOBInline
in class Socket
SocketException
public void setReceiveBufferSize(int size) throws SocketException
setReceiveBufferSize
in class Socket
SocketException
public void setReuseAddress(boolean on) throws SocketException
setReuseAddress
in class Socket
SocketException
public void setSendBufferSize(int size) throws SocketException
setSendBufferSize
in class Socket
SocketException
public void setSoLinger(boolean on, int linger) throws SocketException
setSoLinger
in class Socket
SocketException
public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class Socket
SocketException
public void setTcpNoDelay(boolean on) throws SocketException
setTcpNoDelay
in class Socket
SocketException
public void setTrafficClass(int tc) throws SocketException
setTrafficClass
in class Socket
SocketException
public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.