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 SSLSocket
SSLSocket
subclass that can be used to mock SSL related tests
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 |
MockSslSocket
public MockSslSocket()
addHandshakeCompletedListener
public void addHandshakeCompletedListener(HandshakeCompletedListener listener)
- Specified by:
addHandshakeCompletedListener
in class SSLSocket
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Specified by:
getEnableSessionCreation
in class SSLSocket
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuites
in class SSLSocket
getEnabledProtocols
public String[] getEnabledProtocols()
- Specified by:
getEnabledProtocols
in class SSLSocket
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuth
in class SSLSocket
getSession
public SSLSession getSession()
- Specified by:
getSession
in class SSLSocket
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in class SSLSocket
getSupportedProtocols
public String[] getSupportedProtocols()
- Specified by:
getSupportedProtocols
in class SSLSocket
getUseClientMode
public boolean getUseClientMode()
- Specified by:
getUseClientMode
in class SSLSocket
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuth
in class SSLSocket
removeHandshakeCompletedListener
public void removeHandshakeCompletedListener(HandshakeCompletedListener listener)
- Specified by:
removeHandshakeCompletedListener
in class SSLSocket
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Specified by:
setEnableSessionCreation
in class SSLSocket
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Specified by:
setEnabledCipherSuites
in class SSLSocket
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Specified by:
setEnabledProtocols
in class SSLSocket
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Specified by:
setNeedClientAuth
in class SSLSocket
setUseClientMode
public void setUseClientMode(boolean mode)
- Specified by:
setUseClientMode
in class SSLSocket
setWantClientAuth
public void setWantClientAuth(boolean want)
- Specified by:
setWantClientAuth
in class SSLSocket
startHandshake
public void startHandshake()
throws IOException
- Specified by:
startHandshake
in class SSLSocket
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Overrides:
getInputStream
in class Socket
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Overrides:
getOutputStream
in class Socket
- Throws:
IOException
getRemoteSocketAddress
public SocketAddress getRemoteSocketAddress()
- Overrides:
getRemoteSocketAddress
in class Socket
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.