Package org.wildfly.security.ssl
Class AbstractDelegatingSSLSocket
- java.lang.Object
-
- java.net.Socket
-
- javax.net.ssl.SSLSocket
-
- org.wildfly.security.ssl.AbstractDelegatingSSLSocket
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
ConfiguredSSLSocket
abstract class AbstractDelegatingSSLSocket extends SSLSocket
- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingSSLSocket(SSLSocket delegate)
-
Method Summary
-
Methods inherited from class java.net.Socket
getOption, setOption, setSocketImplFactory, supportedOptions
-
-
-
-
Field Detail
-
delegate
private final SSLSocket delegate
-
-
Constructor Detail
-
AbstractDelegatingSSLSocket
AbstractDelegatingSSLSocket(SSLSocket delegate)
-
-
Method Detail
-
getApplicationProtocol
public String getApplicationProtocol()
- Overrides:
getApplicationProtocol
in classSSLSocket
-
getHandshakeApplicationProtocol
public String getHandshakeApplicationProtocol()
- Overrides:
getHandshakeApplicationProtocol
in classSSLSocket
-
setHandshakeApplicationProtocolSelector
public void setHandshakeApplicationProtocolSelector(BiFunction<SSLSocket,List<String>,String> selector)
- Overrides:
setHandshakeApplicationProtocolSelector
in classSSLSocket
-
getHandshakeApplicationProtocolSelector
public BiFunction<SSLSocket,List<String>,String> getHandshakeApplicationProtocolSelector()
- Overrides:
getHandshakeApplicationProtocolSelector
in classSSLSocket
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLSocket
-
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuites
in classSSLSocket
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Specified by:
setEnabledCipherSuites
in classSSLSocket
-
getSupportedProtocols
public String[] getSupportedProtocols()
- Specified by:
getSupportedProtocols
in classSSLSocket
-
getEnabledProtocols
public String[] getEnabledProtocols()
- Specified by:
getEnabledProtocols
in classSSLSocket
-
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Specified by:
setEnabledProtocols
in classSSLSocket
-
getSession
public SSLSession getSession()
- Specified by:
getSession
in classSSLSocket
-
getHandshakeSession
public SSLSession getHandshakeSession()
- Overrides:
getHandshakeSession
in classSSLSocket
-
addHandshakeCompletedListener
public void addHandshakeCompletedListener(HandshakeCompletedListener listener)
- Specified by:
addHandshakeCompletedListener
in classSSLSocket
-
removeHandshakeCompletedListener
public void removeHandshakeCompletedListener(HandshakeCompletedListener listener)
- Specified by:
removeHandshakeCompletedListener
in classSSLSocket
-
startHandshake
public void startHandshake() throws IOException
- 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
-
getSSLParameters
public SSLParameters getSSLParameters()
- Overrides:
getSSLParameters
in classSSLSocket
-
setSSLParameters
public void setSSLParameters(SSLParameters params)
- Overrides:
setSSLParameters
in classSSLSocket
-
connect
public void connect(SocketAddress endpoint) throws IOException
- Overrides:
connect
in classSocket
- Throws:
IOException
-
connect
public void connect(SocketAddress endpoint, int timeout) throws IOException
- Overrides:
connect
in classSocket
- Throws:
IOException
-
bind
public void bind(SocketAddress bindpoint) throws IOException
- Overrides:
bind
in classSocket
- Throws:
IOException
-
getInetAddress
public InetAddress getInetAddress()
- Overrides:
getInetAddress
in classSocket
-
getLocalAddress
public InetAddress getLocalAddress()
- Overrides:
getLocalAddress
in classSocket
-
getLocalPort
public int getLocalPort()
- Overrides:
getLocalPort
in classSocket
-
getRemoteSocketAddress
public SocketAddress getRemoteSocketAddress()
- Overrides:
getRemoteSocketAddress
in classSocket
-
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
- Overrides:
getLocalSocketAddress
in classSocket
-
getChannel
public SocketChannel getChannel()
- Overrides:
getChannel
in classSocket
-
getInputStream
public InputStream getInputStream() throws IOException
- Overrides:
getInputStream
in classSocket
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Overrides:
getOutputStream
in classSocket
- Throws:
IOException
-
setTcpNoDelay
public void setTcpNoDelay(boolean on) throws SocketException
- Overrides:
setTcpNoDelay
in classSocket
- Throws:
SocketException
-
getTcpNoDelay
public boolean getTcpNoDelay() throws SocketException
- Overrides:
getTcpNoDelay
in classSocket
- Throws:
SocketException
-
setSoLinger
public void setSoLinger(boolean on, int linger) throws SocketException
- Overrides:
setSoLinger
in classSocket
- Throws:
SocketException
-
getSoLinger
public int getSoLinger() throws SocketException
- Overrides:
getSoLinger
in classSocket
- Throws:
SocketException
-
sendUrgentData
public void sendUrgentData(int data) throws IOException
- Overrides:
sendUrgentData
in classSocket
- Throws:
IOException
-
setOOBInline
public void setOOBInline(boolean on) throws SocketException
- Overrides:
setOOBInline
in classSocket
- Throws:
SocketException
-
getOOBInline
public boolean getOOBInline() throws SocketException
- Overrides:
getOOBInline
in classSocket
- Throws:
SocketException
-
setSoTimeout
public void setSoTimeout(int timeout) throws SocketException
- Overrides:
setSoTimeout
in classSocket
- Throws:
SocketException
-
getSoTimeout
public int getSoTimeout() throws SocketException
- Overrides:
getSoTimeout
in classSocket
- Throws:
SocketException
-
setSendBufferSize
public void setSendBufferSize(int size) throws SocketException
- Overrides:
setSendBufferSize
in classSocket
- Throws:
SocketException
-
getSendBufferSize
public int getSendBufferSize() throws SocketException
- Overrides:
getSendBufferSize
in classSocket
- Throws:
SocketException
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) throws SocketException
- Overrides:
setReceiveBufferSize
in classSocket
- Throws:
SocketException
-
getReceiveBufferSize
public int getReceiveBufferSize() throws SocketException
- Overrides:
getReceiveBufferSize
in classSocket
- Throws:
SocketException
-
setKeepAlive
public void setKeepAlive(boolean on) throws SocketException
- Overrides:
setKeepAlive
in classSocket
- Throws:
SocketException
-
getKeepAlive
public boolean getKeepAlive() throws SocketException
- Overrides:
getKeepAlive
in classSocket
- Throws:
SocketException
-
setTrafficClass
public void setTrafficClass(int tc) throws SocketException
- Overrides:
setTrafficClass
in classSocket
- Throws:
SocketException
-
getTrafficClass
public int getTrafficClass() throws SocketException
- Overrides:
getTrafficClass
in classSocket
- Throws:
SocketException
-
setReuseAddress
public void setReuseAddress(boolean on) throws SocketException
- Overrides:
setReuseAddress
in classSocket
- Throws:
SocketException
-
getReuseAddress
public boolean getReuseAddress() throws SocketException
- Overrides:
getReuseAddress
in classSocket
- Throws:
SocketException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSocket
- Throws:
IOException
-
shutdownInput
public void shutdownInput() throws IOException
- Overrides:
shutdownInput
in classSocket
- Throws:
IOException
-
shutdownOutput
public void shutdownOutput() throws IOException
- Overrides:
shutdownOutput
in classSocket
- Throws:
IOException
-
isConnected
public boolean isConnected()
- Overrides:
isConnected
in classSocket
-
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
-
getDelegate
protected SSLSocket getDelegate()
-
-