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:
getApplicationProtocolin classSSLSocket
-
getHandshakeApplicationProtocol
public String getHandshakeApplicationProtocol()
- Overrides:
getHandshakeApplicationProtocolin classSSLSocket
-
setHandshakeApplicationProtocolSelector
public void setHandshakeApplicationProtocolSelector(BiFunction<SSLSocket,List<String>,String> selector)
- Overrides:
setHandshakeApplicationProtocolSelectorin classSSLSocket
-
getHandshakeApplicationProtocolSelector
public BiFunction<SSLSocket,List<String>,String> getHandshakeApplicationProtocolSelector()
- Overrides:
getHandshakeApplicationProtocolSelectorin classSSLSocket
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classSSLSocket
-
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuitesin classSSLSocket
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Specified by:
setEnabledCipherSuitesin classSSLSocket
-
getSupportedProtocols
public String[] getSupportedProtocols()
- Specified by:
getSupportedProtocolsin classSSLSocket
-
getEnabledProtocols
public String[] getEnabledProtocols()
- Specified by:
getEnabledProtocolsin classSSLSocket
-
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Specified by:
setEnabledProtocolsin classSSLSocket
-
getSession
public SSLSession getSession()
- Specified by:
getSessionin classSSLSocket
-
getHandshakeSession
public SSLSession getHandshakeSession()
- Overrides:
getHandshakeSessionin classSSLSocket
-
addHandshakeCompletedListener
public void addHandshakeCompletedListener(HandshakeCompletedListener listener)
- Specified by:
addHandshakeCompletedListenerin classSSLSocket
-
removeHandshakeCompletedListener
public void removeHandshakeCompletedListener(HandshakeCompletedListener listener)
- Specified by:
removeHandshakeCompletedListenerin classSSLSocket
-
startHandshake
public void startHandshake() throws IOException- Specified by:
startHandshakein classSSLSocket- Throws:
IOException
-
setUseClientMode
public void setUseClientMode(boolean mode)
- Specified by:
setUseClientModein classSSLSocket
-
getUseClientMode
public boolean getUseClientMode()
- Specified by:
getUseClientModein classSSLSocket
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Specified by:
setNeedClientAuthin classSSLSocket
-
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuthin classSSLSocket
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Specified by:
setWantClientAuthin classSSLSocket
-
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuthin classSSLSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Specified by:
setEnableSessionCreationin classSSLSocket
-
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Specified by:
getEnableSessionCreationin classSSLSocket
-
getSSLParameters
public SSLParameters getSSLParameters()
- Overrides:
getSSLParametersin classSSLSocket
-
setSSLParameters
public void setSSLParameters(SSLParameters params)
- Overrides:
setSSLParametersin classSSLSocket
-
connect
public void connect(SocketAddress endpoint) throws IOException
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
public void connect(SocketAddress endpoint, int timeout) throws IOException
- Overrides:
connectin classSocket- Throws:
IOException
-
bind
public void bind(SocketAddress bindpoint) throws IOException
- Overrides:
bindin classSocket- Throws:
IOException
-
getInetAddress
public InetAddress getInetAddress()
- Overrides:
getInetAddressin classSocket
-
getLocalAddress
public InetAddress getLocalAddress()
- Overrides:
getLocalAddressin classSocket
-
getLocalPort
public int getLocalPort()
- Overrides:
getLocalPortin classSocket
-
getRemoteSocketAddress
public SocketAddress getRemoteSocketAddress()
- Overrides:
getRemoteSocketAddressin classSocket
-
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
- Overrides:
getLocalSocketAddressin classSocket
-
getChannel
public SocketChannel getChannel()
- Overrides:
getChannelin classSocket
-
getInputStream
public InputStream getInputStream() throws IOException
- Overrides:
getInputStreamin classSocket- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Overrides:
getOutputStreamin classSocket- Throws:
IOException
-
setTcpNoDelay
public void setTcpNoDelay(boolean on) throws SocketException- Overrides:
setTcpNoDelayin classSocket- Throws:
SocketException
-
getTcpNoDelay
public boolean getTcpNoDelay() throws SocketException- Overrides:
getTcpNoDelayin classSocket- Throws:
SocketException
-
setSoLinger
public void setSoLinger(boolean on, int linger) throws SocketException- Overrides:
setSoLingerin classSocket- Throws:
SocketException
-
getSoLinger
public int getSoLinger() throws SocketException- Overrides:
getSoLingerin classSocket- Throws:
SocketException
-
sendUrgentData
public void sendUrgentData(int data) throws IOException- Overrides:
sendUrgentDatain classSocket- Throws:
IOException
-
setOOBInline
public void setOOBInline(boolean on) throws SocketException- Overrides:
setOOBInlinein classSocket- Throws:
SocketException
-
getOOBInline
public boolean getOOBInline() throws SocketException- Overrides:
getOOBInlinein classSocket- Throws:
SocketException
-
setSoTimeout
public void setSoTimeout(int timeout) throws SocketException- Overrides:
setSoTimeoutin classSocket- Throws:
SocketException
-
getSoTimeout
public int getSoTimeout() throws SocketException- Overrides:
getSoTimeoutin classSocket- Throws:
SocketException
-
setSendBufferSize
public void setSendBufferSize(int size) throws SocketException- Overrides:
setSendBufferSizein classSocket- Throws:
SocketException
-
getSendBufferSize
public int getSendBufferSize() throws SocketException- Overrides:
getSendBufferSizein classSocket- Throws:
SocketException
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) throws SocketException- Overrides:
setReceiveBufferSizein classSocket- Throws:
SocketException
-
getReceiveBufferSize
public int getReceiveBufferSize() throws SocketException- Overrides:
getReceiveBufferSizein classSocket- Throws:
SocketException
-
setKeepAlive
public void setKeepAlive(boolean on) throws SocketException- Overrides:
setKeepAlivein classSocket- Throws:
SocketException
-
getKeepAlive
public boolean getKeepAlive() throws SocketException- Overrides:
getKeepAlivein classSocket- Throws:
SocketException
-
setTrafficClass
public void setTrafficClass(int tc) throws SocketException- Overrides:
setTrafficClassin classSocket- Throws:
SocketException
-
getTrafficClass
public int getTrafficClass() throws SocketException- Overrides:
getTrafficClassin classSocket- Throws:
SocketException
-
setReuseAddress
public void setReuseAddress(boolean on) throws SocketException- Overrides:
setReuseAddressin classSocket- Throws:
SocketException
-
getReuseAddress
public boolean getReuseAddress() throws SocketException- Overrides:
getReuseAddressin classSocket- Throws:
SocketException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
shutdownInput
public void shutdownInput() throws IOException- Overrides:
shutdownInputin classSocket- Throws:
IOException
-
shutdownOutput
public void shutdownOutput() throws IOException- Overrides:
shutdownOutputin classSocket- Throws:
IOException
-
isConnected
public boolean isConnected()
- Overrides:
isConnectedin classSocket
-
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
-
getDelegate
protected SSLSocket getDelegate()
-
-