org.mule.transport.ssl
Class MockSslSocket
java.lang.Object
java.net.Socket
javax.net.ssl.SSLSocket
org.mule.transport.ssl.MockSslSocket
public class MockSslSocket
- extends javax.net.ssl.SSLSocket
SSLSocket
subclass that can be used to mock SSL related tests
Methods inherited from class javax.net.ssl.SSLSocket |
getSSLParameters, setSSLParameters |
Methods inherited from class java.net.Socket |
bind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MockSslSocket
public MockSslSocket()
addHandshakeCompletedListener
public void addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)
- Specified by:
addHandshakeCompletedListener
in class javax.net.ssl.SSLSocket
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Specified by:
getEnableSessionCreation
in class javax.net.ssl.SSLSocket
getEnabledCipherSuites
public java.lang.String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuites
in class javax.net.ssl.SSLSocket
getEnabledProtocols
public java.lang.String[] getEnabledProtocols()
- Specified by:
getEnabledProtocols
in class javax.net.ssl.SSLSocket
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuth
in class javax.net.ssl.SSLSocket
getSession
public javax.net.ssl.SSLSession getSession()
- Specified by:
getSession
in class javax.net.ssl.SSLSocket
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in class javax.net.ssl.SSLSocket
getSupportedProtocols
public java.lang.String[] getSupportedProtocols()
- Specified by:
getSupportedProtocols
in class javax.net.ssl.SSLSocket
getUseClientMode
public boolean getUseClientMode()
- Specified by:
getUseClientMode
in class javax.net.ssl.SSLSocket
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuth
in class javax.net.ssl.SSLSocket
removeHandshakeCompletedListener
public void removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)
- Specified by:
removeHandshakeCompletedListener
in class javax.net.ssl.SSLSocket
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Specified by:
setEnableSessionCreation
in class javax.net.ssl.SSLSocket
setEnabledCipherSuites
public void setEnabledCipherSuites(java.lang.String[] suites)
- Specified by:
setEnabledCipherSuites
in class javax.net.ssl.SSLSocket
setEnabledProtocols
public void setEnabledProtocols(java.lang.String[] protocols)
- Specified by:
setEnabledProtocols
in class javax.net.ssl.SSLSocket
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Specified by:
setNeedClientAuth
in class javax.net.ssl.SSLSocket
setUseClientMode
public void setUseClientMode(boolean mode)
- Specified by:
setUseClientMode
in class javax.net.ssl.SSLSocket
setWantClientAuth
public void setWantClientAuth(boolean want)
- Specified by:
setWantClientAuth
in class javax.net.ssl.SSLSocket
startHandshake
public void startHandshake()
throws java.io.IOException
- Specified by:
startHandshake
in class javax.net.ssl.SSLSocket
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Overrides:
getInputStream
in class java.net.Socket
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Overrides:
getOutputStream
in class java.net.Socket
- Throws:
java.io.IOException
getRemoteSocketAddress
public java.net.SocketAddress getRemoteSocketAddress()
- Overrides:
getRemoteSocketAddress
in class java.net.Socket
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.