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