Package org.wildfly.security.ssl
Class AbstractDelegatingSSLServerSocket
- java.lang.Object
-
- java.net.ServerSocket
-
- javax.net.ssl.SSLServerSocket
-
- org.wildfly.security.ssl.AbstractDelegatingSSLServerSocket
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
ConfiguredSSLServerSocket
abstract class AbstractDelegatingSSLServerSocket extends SSLServerSocket
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SSLServerSocket
delegate
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingSSLServerSocket(SSLServerSocket delegate)
-
Method Summary
-
Methods inherited from class java.net.ServerSocket
getOption, implAccept, setOption, supportedOptions
-
-
-
-
Field Detail
-
delegate
private final SSLServerSocket delegate
-
-
Constructor Detail
-
AbstractDelegatingSSLServerSocket
AbstractDelegatingSSLServerSocket(SSLServerSocket delegate) throws IOException
- Throws:
IOException
-
-
Method Detail
-
bind
public void bind(SocketAddress endpoint) throws IOException
- Overrides:
bind
in classServerSocket
- Throws:
IOException
-
bind
public void bind(SocketAddress endpoint, int backlog) throws IOException
- Overrides:
bind
in classServerSocket
- Throws:
IOException
-
getInetAddress
public InetAddress getInetAddress()
- Overrides:
getInetAddress
in classServerSocket
-
getLocalPort
public int getLocalPort()
- Overrides:
getLocalPort
in classServerSocket
-
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
- Overrides:
getLocalSocketAddress
in classServerSocket
-
accept
public Socket accept() throws IOException
- Overrides:
accept
in classServerSocket
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classServerSocket
- Throws:
IOException
-
getChannel
public ServerSocketChannel getChannel()
- Overrides:
getChannel
in classServerSocket
-
isBound
public boolean isBound()
- Overrides:
isBound
in classServerSocket
-
isClosed
public boolean isClosed()
- Overrides:
isClosed
in classServerSocket
-
setSoTimeout
public void setSoTimeout(int timeout) throws SocketException
- Overrides:
setSoTimeout
in classServerSocket
- Throws:
SocketException
-
getSoTimeout
public int getSoTimeout() throws IOException
- Overrides:
getSoTimeout
in classServerSocket
- Throws:
IOException
-
setReuseAddress
public void setReuseAddress(boolean on) throws SocketException
- Overrides:
setReuseAddress
in classServerSocket
- Throws:
SocketException
-
getReuseAddress
public boolean getReuseAddress() throws SocketException
- Overrides:
getReuseAddress
in classServerSocket
- Throws:
SocketException
-
toString
public String toString()
- Overrides:
toString
in classServerSocket
-
setSocketFactory
public static void setSocketFactory(SocketImplFactory fac) throws IOException
- Throws:
IOException
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) throws SocketException
- Overrides:
setReceiveBufferSize
in classServerSocket
- Throws:
SocketException
-
getReceiveBufferSize
public int getReceiveBufferSize() throws SocketException
- Overrides:
getReceiveBufferSize
in classServerSocket
- Throws:
SocketException
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
- Overrides:
setPerformancePreferences
in classServerSocket
-
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuites
in classSSLServerSocket
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] names) throws IllegalArgumentException
- Specified by:
setEnabledCipherSuites
in classSSLServerSocket
- Throws:
IllegalArgumentException
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLServerSocket
-
getSupportedProtocols
public String[] getSupportedProtocols()
- Specified by:
getSupportedProtocols
in classSSLServerSocket
-
getEnabledProtocols
public String[] getEnabledProtocols()
- Specified by:
getEnabledProtocols
in classSSLServerSocket
-
setEnabledProtocols
public void setEnabledProtocols(String[] names) throws IllegalArgumentException
- Specified by:
setEnabledProtocols
in classSSLServerSocket
- Throws:
IllegalArgumentException
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Specified by:
setNeedClientAuth
in classSSLServerSocket
-
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuth
in classSSLServerSocket
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Specified by:
setWantClientAuth
in classSSLServerSocket
-
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuth
in classSSLServerSocket
-
setUseClientMode
public void setUseClientMode(boolean clientMode)
- Specified by:
setUseClientMode
in classSSLServerSocket
-
getUseClientMode
public boolean getUseClientMode()
- Specified by:
getUseClientMode
in classSSLServerSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean enabled)
- Specified by:
setEnableSessionCreation
in classSSLServerSocket
-
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Specified by:
getEnableSessionCreation
in classSSLServerSocket
-
getSSLParameters
public SSLParameters getSSLParameters()
- Overrides:
getSSLParameters
in classSSLServerSocket
-
setSSLParameters
public void setSSLParameters(SSLParameters parameters)
- Overrides:
setSSLParameters
in classSSLServerSocket
-
getDelegate
protected SSLServerSocket getDelegate()
-
-