org.apache.commons.ssl
Class SSLSocketWrapper
java.lang.Object
java.net.Socket
javax.net.ssl.SSLSocket
org.apache.commons.ssl.SSLSocketWrapper
- public class SSLSocketWrapper
- extends javax.net.ssl.SSLSocket
- Since:
- 16-Aug-2006
- Author:
- Credit Union Central of British Columbia, www.cucbc.com, juliusdavies@cucbc.com
|
Field Summary |
protected javax.net.ssl.SSLSocket |
s
|
| Methods inherited from class java.net.Socket |
setSocketImplFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
s
protected javax.net.ssl.SSLSocket s
SSLSocketWrapper
public SSLSocketWrapper(javax.net.ssl.SSLSocket s)
addHandshakeCompletedListener
public void addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener hcl)
removeHandshakeCompletedListener
public void removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener hcl)
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
getEnableSessionCreation
public boolean getEnableSessionCreation()
getEnabledCipherSuites
public java.lang.String[] getEnabledCipherSuites()
getSupportedProtocols
public java.lang.String[] getSupportedProtocols()
getEnabledProtocols
public java.lang.String[] getEnabledProtocols()
getSession
public javax.net.ssl.SSLSession getSession()
getUseClientMode
public boolean getUseClientMode()
getNeedClientAuth
public boolean getNeedClientAuth()
getWantClientAuth
public boolean getWantClientAuth()
setEnabledCipherSuites
public void setEnabledCipherSuites(java.lang.String[] cs)
setEnabledProtocols
public void setEnabledProtocols(java.lang.String[] ep)
startHandshake
public void startHandshake()
throws java.io.IOException
- Throws:
java.io.IOException
setUseClientMode
public void setUseClientMode(boolean b)
setNeedClientAuth
public void setNeedClientAuth(boolean b)
setWantClientAuth
public void setWantClientAuth(boolean b)
setEnableSessionCreation
public void setEnableSessionCreation(boolean b)
getChannel
public java.nio.channels.SocketChannel getChannel()
getInetAddress
public java.net.InetAddress getInetAddress()
getKeepAlive
public boolean getKeepAlive()
throws java.net.SocketException
- Throws:
java.net.SocketException
getLocalAddress
public java.net.InetAddress getLocalAddress()
getLocalPort
public int getLocalPort()
getLocalSocketAddress
public java.net.SocketAddress getLocalSocketAddress()
getOOBInline
public boolean getOOBInline()
throws java.net.SocketException
- Throws:
java.net.SocketException
getPort
public int getPort()
getReceiveBufferSize
public int getReceiveBufferSize()
throws java.net.SocketException
- Throws:
java.net.SocketException
getRemoteSocketAddress
public java.net.SocketAddress getRemoteSocketAddress()
getReuseAddress
public boolean getReuseAddress()
throws java.net.SocketException
- Throws:
java.net.SocketException
getSendBufferSize
public int getSendBufferSize()
throws java.net.SocketException
- Throws:
java.net.SocketException
getSoLinger
public int getSoLinger()
throws java.net.SocketException
- Throws:
java.net.SocketException
getSoTimeout
public int getSoTimeout()
throws java.net.SocketException
- Throws:
java.net.SocketException
getTcpNoDelay
public boolean getTcpNoDelay()
throws java.net.SocketException
- Throws:
java.net.SocketException
getTrafficClass
public int getTrafficClass()
throws java.net.SocketException
- Throws:
java.net.SocketException
isBound
public boolean isBound()
isClosed
public boolean isClosed()
isConnected
public boolean isConnected()
isInputShutdown
public boolean isInputShutdown()
isOutputShutdown
public boolean isOutputShutdown()
sendUrgentData
public void sendUrgentData(int data)
throws java.io.IOException
- Throws:
java.io.IOException
setKeepAlive
public void setKeepAlive(boolean on)
throws java.net.SocketException
- Throws:
java.net.SocketException
setOOBInline
public void setOOBInline(boolean on)
throws java.net.SocketException
- Throws:
java.net.SocketException
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws java.net.SocketException
- Throws:
java.net.SocketException
setReuseAddress
public void setReuseAddress(boolean on)
throws java.net.SocketException
- Throws:
java.net.SocketException
setSendBufferSize
public void setSendBufferSize(int size)
throws java.net.SocketException
- Throws:
java.net.SocketException
setSoLinger
public void setSoLinger(boolean on,
int l)
throws java.net.SocketException
- Throws:
java.net.SocketException
setSoTimeout
public void setSoTimeout(int timeout)
throws java.net.SocketException
- Throws:
java.net.SocketException
setTcpNoDelay
public void setTcpNoDelay(boolean on)
throws java.net.SocketException
- Throws:
java.net.SocketException
setTrafficClass
public void setTrafficClass(int tc)
throws java.net.SocketException
- Throws:
java.net.SocketException
shutdownInput
public void shutdownInput()
throws java.io.IOException
- Throws:
java.io.IOException
shutdownOutput
public void shutdownOutput()
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
bind
public void bind(java.net.SocketAddress bindpoint)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
connect
public void connect(java.net.SocketAddress endpoint)
throws java.io.IOException
- Throws:
java.io.IOException
connect
public void connect(java.net.SocketAddress endpoint,
int timeout)
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011. All Rights Reserved.