Class DelegateSslSocket
java.lang.Object
java.net.Socket
javax.net.ssl.SSLSocket
software.amazon.awssdk.http.apache.internal.net.DelegateSslSocket
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
SdkSslSocket
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
bind
(SocketAddress bindpoint) void
close()
void
connect
(SocketAddress endpoint) void
connect
(SocketAddress endpoint, int timeout) String[]
String[]
boolean
boolean
int
boolean
boolean
int
getPort()
int
boolean
int
int
int
String[]
String[]
boolean
int
boolean
boolean
boolean
isBound()
boolean
isClosed()
boolean
boolean
boolean
void
void
sendUrgentData
(int data) void
setEnabledCipherSuites
(String[] suites) void
setEnabledProtocols
(String[] protocols) void
setEnableSessionCreation
(boolean flag) void
setKeepAlive
(boolean on) void
setNeedClientAuth
(boolean need) void
setOOBInline
(boolean on) void
setPerformancePreferences
(int connectionTime, int latency, int bandwidth) void
setReceiveBufferSize
(int size) void
setReuseAddress
(boolean on) void
setSendBufferSize
(int size) void
setSoLinger
(boolean on, int linger) void
setSoTimeout
(int timeout) void
setTcpNoDelay
(boolean on) void
setTrafficClass
(int tc) void
setUseClientMode
(boolean mode) void
setWantClientAuth
(boolean want) void
void
void
toString()
Methods inherited from class javax.net.ssl.SSLSocket
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters
Methods inherited from class java.net.Socket
setSocketImplFactory
-
Constructor Details
-
DelegateSslSocket
-
-
Method Details
-
connect
- Overrides:
connect
in classSocket
- Throws:
IOException
-
connect
- Overrides:
connect
in classSocket
- Throws:
IOException
-
bind
- Overrides:
bind
in classSocket
- Throws:
IOException
-
getInetAddress
- Overrides:
getInetAddress
in classSocket
-
getLocalAddress
- Overrides:
getLocalAddress
in classSocket
-
getPort
public int getPort() -
getLocalPort
public int getLocalPort()- Overrides:
getLocalPort
in classSocket
-
getRemoteSocketAddress
- Overrides:
getRemoteSocketAddress
in classSocket
-
getLocalSocketAddress
- Overrides:
getLocalSocketAddress
in classSocket
-
getChannel
- Overrides:
getChannel
in classSocket
-
getInputStream
- Overrides:
getInputStream
in classSocket
- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStream
in classSocket
- Throws:
IOException
-
setTcpNoDelay
- Overrides:
setTcpNoDelay
in classSocket
- Throws:
SocketException
-
getTcpNoDelay
- Overrides:
getTcpNoDelay
in classSocket
- Throws:
SocketException
-
setSoLinger
- Overrides:
setSoLinger
in classSocket
- Throws:
SocketException
-
getSoLinger
- Overrides:
getSoLinger
in classSocket
- Throws:
SocketException
-
sendUrgentData
- Overrides:
sendUrgentData
in classSocket
- Throws:
IOException
-
setOOBInline
- Overrides:
setOOBInline
in classSocket
- Throws:
SocketException
-
getOOBInline
- Overrides:
getOOBInline
in classSocket
- Throws:
SocketException
-
setSoTimeout
- Overrides:
setSoTimeout
in classSocket
- Throws:
SocketException
-
getSoTimeout
- Overrides:
getSoTimeout
in classSocket
- Throws:
SocketException
-
setSendBufferSize
- Overrides:
setSendBufferSize
in classSocket
- Throws:
SocketException
-
getSendBufferSize
- Overrides:
getSendBufferSize
in classSocket
- Throws:
SocketException
-
setReceiveBufferSize
- Overrides:
setReceiveBufferSize
in classSocket
- Throws:
SocketException
-
getReceiveBufferSize
- Overrides:
getReceiveBufferSize
in classSocket
- Throws:
SocketException
-
setKeepAlive
- Overrides:
setKeepAlive
in classSocket
- Throws:
SocketException
-
getKeepAlive
- Overrides:
getKeepAlive
in classSocket
- Throws:
SocketException
-
setTrafficClass
- Overrides:
setTrafficClass
in classSocket
- Throws:
SocketException
-
getTrafficClass
- Overrides:
getTrafficClass
in classSocket
- Throws:
SocketException
-
setReuseAddress
- Overrides:
setReuseAddress
in classSocket
- Throws:
SocketException
-
getReuseAddress
- Overrides:
getReuseAddress
in classSocket
- Throws:
SocketException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSocket
- Throws:
IOException
-
shutdownInput
- Overrides:
shutdownInput
in classSocket
- Throws:
IOException
-
shutdownOutput
- Overrides:
shutdownOutput
in classSocket
- Throws:
IOException
-
toString
-
isConnected
public boolean isConnected()- Overrides:
isConnected
in classSocket
-
isBound
public boolean isBound() -
isClosed
public boolean isClosed() -
isInputShutdown
public boolean isInputShutdown()- Overrides:
isInputShutdown
in classSocket
-
isOutputShutdown
public boolean isOutputShutdown()- Overrides:
isOutputShutdown
in classSocket
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) - Overrides:
setPerformancePreferences
in classSocket
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuites
in classSSLSocket
-
getEnabledCipherSuites
- Specified by:
getEnabledCipherSuites
in classSSLSocket
-
setEnabledCipherSuites
- Specified by:
setEnabledCipherSuites
in classSSLSocket
-
getSupportedProtocols
- Specified by:
getSupportedProtocols
in classSSLSocket
-
getEnabledProtocols
- Specified by:
getEnabledProtocols
in classSSLSocket
-
setEnabledProtocols
- Specified by:
setEnabledProtocols
in classSSLSocket
-
getSession
- Specified by:
getSession
in classSSLSocket
-
addHandshakeCompletedListener
- Specified by:
addHandshakeCompletedListener
in classSSLSocket
-
removeHandshakeCompletedListener
- Specified by:
removeHandshakeCompletedListener
in classSSLSocket
-
startHandshake
- Specified by:
startHandshake
in classSSLSocket
- Throws:
IOException
-
setUseClientMode
public void setUseClientMode(boolean mode) - Specified by:
setUseClientMode
in classSSLSocket
-
getUseClientMode
public boolean getUseClientMode()- Specified by:
getUseClientMode
in classSSLSocket
-
setNeedClientAuth
public void setNeedClientAuth(boolean need) - Specified by:
setNeedClientAuth
in classSSLSocket
-
getNeedClientAuth
public boolean getNeedClientAuth()- Specified by:
getNeedClientAuth
in classSSLSocket
-
setWantClientAuth
public void setWantClientAuth(boolean want) - Specified by:
setWantClientAuth
in classSSLSocket
-
getWantClientAuth
public boolean getWantClientAuth()- Specified by:
getWantClientAuth
in classSSLSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag) - Specified by:
setEnableSessionCreation
in classSSLSocket
-
getEnableSessionCreation
public boolean getEnableSessionCreation()- Specified by:
getEnableSessionCreation
in classSSLSocket
-