Class OpenSSLSocketImpl
java.lang.Object
java.net.Socket
javax.net.ssl.SSLSocket
org.conscrypt.OpenSSLSocketImpl
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbind(SocketAddress bindpoint) voidclose()final voidconnect(SocketAddress endpoint) final voidconnect(SocketAddress endpoint, int timeout) Try to extract the peer's hostname if it's available from the endpoint address.final byte[]Deprecated.abstract Stringabstract byte[]abstract Stringabstract SSLSessionbooleanintfinal byte[]Deprecated.NPN is not supportedbooleanfinal intgetPort()intbooleanintintfinal intintbooleanintbooleanisBound()booleanisClosed()booleanbooleanbooleanvoidfinal voidsendUrgentData(int data) final voidsetAlpnProtocols(byte[] protocols) Deprecated.UsesetAlpnProtocols(String[])instead.final voidsetAlpnProtocols(String[] alpnProtocols) Deprecated.useAbstractConscryptSocket.setApplicationProtocols(String[])instead.abstract voidsetChannelIdEnabled(boolean enabled) abstract voidsetChannelIdPrivateKey(PrivateKey privateKey) voidsetHandshakeTimeout(int handshakeTimeoutMilliseconds) voidsetHostname(String hostname) voidsetKeepAlive(boolean on) final voidsetNpnProtocols(byte[] npnProtocols) Deprecated.NPN is not supportedfinal voidsetOOBInline(boolean on) voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth) voidsetReceiveBufferSize(int size) voidsetReuseAddress(boolean on) voidsetSendBufferSize(int size) voidsetSoLinger(boolean on, int linger) final voidsetSoTimeout(int readTimeoutMilliseconds) voidsetSoWriteTimeout(int writeTimeoutMilliseconds) voidsetTcpNoDelay(boolean on) voidsetTrafficClass(int tc) abstract voidsetUseSessionTickets(boolean useSessionTickets) voidvoidtoString()Methods inherited from class SSLSocket
getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getHandshakeApplicationProtocolSelector, getNeedClientAuth, getSession, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getUseClientMode, getWantClientAuth, setEnabledCipherSuites, setEnabledProtocols, setEnableSessionCreation, setHandshakeApplicationProtocolSelector, setNeedClientAuth, setSSLParameters, setUseClientMode, setWantClientAuth, startHandshakeMethods inherited from class Socket
getOption, setOption, setSocketImplFactory, supportedOptions
-
Method Details
-
getHostname
-
setHostname
-
getHostnameOrIP
-
getFileDescriptor$
-
setSoWriteTimeout
- Throws:
SocketException
-
getSoWriteTimeout
- Throws:
SocketException
-
setHandshakeTimeout
- Throws:
SocketException
-
getHandshakeSession
-
setUseSessionTickets
public abstract void setUseSessionTickets(boolean useSessionTickets) -
setChannelIdEnabled
public abstract void setChannelIdEnabled(boolean enabled) -
getChannelId
- Throws:
SSLException
-
setChannelIdPrivateKey
-
getNpnSelectedProtocol
Deprecated.NPN is not supported -
setNpnProtocols
Deprecated.NPN is not supported -
setAlpnProtocols
Deprecated.useAbstractConscryptSocket.setApplicationProtocols(String[])instead. -
getAlpnSelectedProtocol
Deprecated.useSSLSocket.getApplicationProtocol()instead. -
setAlpnProtocols
Deprecated.UsesetAlpnProtocols(String[])instead. -
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
Try to extract the peer's hostname if it's available from the endpoint address.- Overrides:
connectin classSocket- Throws:
IOException
-
bind
- Overrides:
bindin classSocket- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
getInetAddress
- Overrides:
getInetAddressin classSocket
-
getLocalAddress
- Overrides:
getLocalAddressin classSocket
-
getLocalPort
public int getLocalPort()- Overrides:
getLocalPortin classSocket
-
getRemoteSocketAddress
- Overrides:
getRemoteSocketAddressin classSocket
-
getLocalSocketAddress
- Overrides:
getLocalSocketAddressin classSocket
-
getPort
-
addHandshakeCompletedListener
- Specified by:
addHandshakeCompletedListenerin classSSLSocket
-
removeHandshakeCompletedListener
- Specified by:
removeHandshakeCompletedListenerin classSSLSocket
-
setSoTimeout
- Overrides:
setSoTimeoutin classSocket- Throws:
SocketException
-
getSoTimeout
- Overrides:
getSoTimeoutin classSocket- Throws:
SocketException
-
sendUrgentData
- Overrides:
sendUrgentDatain classSocket- Throws:
IOException
-
setOOBInline
- Overrides:
setOOBInlinein classSocket- Throws:
SocketException
-
getOOBInline
- Overrides:
getOOBInlinein classSocket- Throws:
SocketException
-
getChannel
- Overrides:
getChannelin classSocket
-
getInputStream
- Overrides:
getInputStreamin classSocket- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classSocket- Throws:
IOException
-
setTcpNoDelay
- Overrides:
setTcpNoDelayin classSocket- Throws:
SocketException
-
getTcpNoDelay
- Overrides:
getTcpNoDelayin classSocket- Throws:
SocketException
-
setSoLinger
- Overrides:
setSoLingerin classSocket- Throws:
SocketException
-
getSoLinger
- Overrides:
getSoLingerin classSocket- Throws:
SocketException
-
setSendBufferSize
- Overrides:
setSendBufferSizein classSocket- Throws:
SocketException
-
getSendBufferSize
- Overrides:
getSendBufferSizein classSocket- Throws:
SocketException
-
setReceiveBufferSize
- Overrides:
setReceiveBufferSizein classSocket- Throws:
SocketException
-
getReceiveBufferSize
- Overrides:
getReceiveBufferSizein classSocket- Throws:
SocketException
-
setKeepAlive
- Overrides:
setKeepAlivein classSocket- Throws:
SocketException
-
getKeepAlive
- Overrides:
getKeepAlivein classSocket- Throws:
SocketException
-
setTrafficClass
- Overrides:
setTrafficClassin classSocket- Throws:
SocketException
-
getTrafficClass
- Overrides:
getTrafficClassin classSocket- Throws:
SocketException
-
setReuseAddress
- Overrides:
setReuseAddressin classSocket- Throws:
SocketException
-
getReuseAddress
- Overrides:
getReuseAddressin classSocket- Throws:
SocketException
-
shutdownInput
- Overrides:
shutdownInputin classSocket- Throws:
IOException
-
shutdownOutput
- Overrides:
shutdownOutputin classSocket- Throws:
IOException
-
isConnected
public boolean isConnected()- Overrides:
isConnectedin classSocket
-
isBound
-
isClosed
-
isInputShutdown
public boolean isInputShutdown()- Overrides:
isInputShutdownin classSocket
-
isOutputShutdown
public boolean isOutputShutdown()- Overrides:
isOutputShutdownin classSocket
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) - Overrides:
setPerformancePreferencesin classSocket
-
toString
-
getApplicationProtocol
- Overrides:
getApplicationProtocolin classSSLSocket
-
getHandshakeApplicationProtocol
- Overrides:
getHandshakeApplicationProtocolin classSSLSocket
-
SSLSocket.getApplicationProtocol()instead.