org.apache.commons.ssl
Class SSLServerSocketWrapper
java.lang.Object
java.net.ServerSocket
javax.net.ssl.SSLServerSocket
org.apache.commons.ssl.SSLServerSocketWrapper
- public class SSLServerSocketWrapper
- extends SSLServerSocket
Wraps an SSLServerSocket - NOTE that the accept() method applies a number of
important common-ssl settings before returning the SSLSocket!
- Since:
- 20-Nov-2006
- Author:
- Credit Union Central of British Columbia, www.cucbc.com, juliusdavies@cucbc.com
s
protected SSLServerSocket s
ssl
protected SSL ssl
wf
protected SSLWrapperFactory wf
SSLServerSocketWrapper
public SSLServerSocketWrapper(SSLServerSocket s,
SSL ssl,
SSLWrapperFactory wf)
throws IOException
accept
public Socket accept()
throws IOException
- Throws:
IOException
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
getEnabledProtocols
public String[] getEnabledProtocols()
getEnableSessionCreation
public boolean getEnableSessionCreation()
getNeedClientAuth
public boolean getNeedClientAuth()
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
getSupportedProtocols
public String[] getSupportedProtocols()
getUseClientMode
public boolean getUseClientMode()
getWantClientAuth
public boolean getWantClientAuth()
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
setNeedClientAuth
public void setNeedClientAuth(boolean need)
setUseClientMode
public void setUseClientMode(boolean use)
setWantClientAuth
public void setWantClientAuth(boolean want)
bind
public void bind(SocketAddress endpoint)
throws IOException
- Throws:
IOException
bind
public void bind(SocketAddress ep,
int bl)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
getChannel
public ServerSocketChannel getChannel()
getInetAddress
public InetAddress getInetAddress()
getLocalPort
public int getLocalPort()
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
- Throws:
SocketException
getReuseAddress
public boolean getReuseAddress()
throws SocketException
- Throws:
SocketException
getSoTimeout
public int getSoTimeout()
throws IOException
- Throws:
IOException
isBound
public boolean isBound()
isClosed
public boolean isClosed()
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws SocketException
- Throws:
SocketException
setReuseAddress
public void setReuseAddress(boolean on)
throws SocketException
- Throws:
SocketException
setSoTimeout
public void setSoTimeout(int timeout)
throws SocketException
- Throws:
SocketException
toString
public String toString()