public class DelegateSSLSocket extends SSLSocket
Constructor and Description |
---|
DelegateSSLSocket(SSLSocket sock) |
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters
setSocketImplFactory
protected final SSLSocket sock
public DelegateSSLSocket(SSLSocket sock)
public void connect(SocketAddress endpoint) throws IOException
connect
in class Socket
IOException
public void connect(SocketAddress endpoint, int timeout) throws IOException
connect
in class Socket
IOException
public void bind(SocketAddress bindpoint) throws IOException
bind
in class Socket
IOException
public InetAddress getInetAddress()
getInetAddress
in class Socket
public InetAddress getLocalAddress()
getLocalAddress
in class Socket
public int getLocalPort()
getLocalPort
in class Socket
public SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class Socket
public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class Socket
public SocketChannel getChannel()
getChannel
in class Socket
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
public void setTcpNoDelay(boolean on) throws SocketException
setTcpNoDelay
in class Socket
SocketException
public boolean getTcpNoDelay() throws SocketException
getTcpNoDelay
in class Socket
SocketException
public void setSoLinger(boolean on, int linger) throws SocketException
setSoLinger
in class Socket
SocketException
public int getSoLinger() throws SocketException
getSoLinger
in class Socket
SocketException
public void sendUrgentData(int data) throws IOException
sendUrgentData
in class Socket
IOException
public void setOOBInline(boolean on) throws SocketException
setOOBInline
in class Socket
SocketException
public boolean getOOBInline() throws SocketException
getOOBInline
in class Socket
SocketException
public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class Socket
SocketException
public int getSoTimeout() throws SocketException
getSoTimeout
in class Socket
SocketException
public void setSendBufferSize(int size) throws SocketException
setSendBufferSize
in class Socket
SocketException
public int getSendBufferSize() throws SocketException
getSendBufferSize
in class Socket
SocketException
public void setReceiveBufferSize(int size) throws SocketException
setReceiveBufferSize
in class Socket
SocketException
public int getReceiveBufferSize() throws SocketException
getReceiveBufferSize
in class Socket
SocketException
public void setKeepAlive(boolean on) throws SocketException
setKeepAlive
in class Socket
SocketException
public boolean getKeepAlive() throws SocketException
getKeepAlive
in class Socket
SocketException
public void setTrafficClass(int tc) throws SocketException
setTrafficClass
in class Socket
SocketException
public int getTrafficClass() throws SocketException
getTrafficClass
in class Socket
SocketException
public void setReuseAddress(boolean on) throws SocketException
setReuseAddress
in class Socket
SocketException
public boolean getReuseAddress() throws SocketException
getReuseAddress
in class Socket
SocketException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException
public boolean isConnected()
isConnected
in class Socket
public boolean isInputShutdown()
isInputShutdown
in class Socket
public boolean isOutputShutdown()
isOutputShutdown
in class Socket
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in class Socket
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocket
public String[] getEnabledCipherSuites()
getEnabledCipherSuites
in class SSLSocket
public void setEnabledCipherSuites(String[] suites)
setEnabledCipherSuites
in class SSLSocket
public String[] getSupportedProtocols()
getSupportedProtocols
in class SSLSocket
public String[] getEnabledProtocols()
getEnabledProtocols
in class SSLSocket
public void setEnabledProtocols(String[] protocols)
setEnabledProtocols
in class SSLSocket
public SSLSession getSession()
getSession
in class SSLSocket
public void addHandshakeCompletedListener(HandshakeCompletedListener listener)
addHandshakeCompletedListener
in class SSLSocket
public void removeHandshakeCompletedListener(HandshakeCompletedListener listener)
removeHandshakeCompletedListener
in class SSLSocket
public void startHandshake() throws IOException
startHandshake
in class SSLSocket
IOException
public void setUseClientMode(boolean mode)
setUseClientMode
in class SSLSocket
public boolean getUseClientMode()
getUseClientMode
in class SSLSocket
public void setNeedClientAuth(boolean need)
setNeedClientAuth
in class SSLSocket
public boolean getNeedClientAuth()
getNeedClientAuth
in class SSLSocket
public void setWantClientAuth(boolean want)
setWantClientAuth
in class SSLSocket
public boolean getWantClientAuth()
getWantClientAuth
in class SSLSocket
public void setEnableSessionCreation(boolean flag)
setEnableSessionCreation
in class SSLSocket
public boolean getEnableSessionCreation()
getEnableSessionCreation
in class SSLSocket
Copyright © 2024. All rights reserved.