com.atlassian.bamboo.agent.elastic.tunnel.http
Class SSLSocketDecorator

java.lang.Object
  extended by java.net.Socket
      extended by javax.net.ssl.SSLSocket
          extended by com.atlassian.bamboo.agent.elastic.tunnel.http.SSLSocketDelegate
              extended by com.atlassian.bamboo.agent.elastic.tunnel.http.SSLSocketDecorator

public class SSLSocketDecorator
extends SSLSocketDelegate

Decorates an unconnected socket with SSL functionality.


Constructor Summary
SSLSocketDecorator(java.net.Socket socket, javax.net.ssl.SSLSocketFactory secureSocketFactory)
           
 
Method Summary
 void close()
           
 void connect(java.net.SocketAddress remoteAddress, int timeout)
           
protected  javax.net.ssl.SSLSocket getSecureSocketDelegate()
           
 
Methods inherited from class com.atlassian.bamboo.agent.elastic.tunnel.http.SSLSocketDelegate
addHandshakeCompletedListener, bind, connect, getChannel, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getNeedClientAuth, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSession, getSoLinger, getSoTimeout, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getTcpNoDelay, getTrafficClass, getUseClientMode, getWantClientAuth, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, removeHandshakeCompletedListener, sendUrgentData, setEnabledCipherSuites, setEnabledProtocols, setEnableSessionCreation, setKeepAlive, setNeedClientAuth, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setSoTimeout, setSSLParameters, setTcpNoDelay, setTrafficClass, setUseClientMode, setWantClientAuth, shutdownInput, shutdownOutput, startHandshake, toString
 
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
 

Constructor Detail

SSLSocketDecorator

public SSLSocketDecorator(java.net.Socket socket,
                          javax.net.ssl.SSLSocketFactory secureSocketFactory)
Method Detail

getSecureSocketDelegate

protected javax.net.ssl.SSLSocket getSecureSocketDelegate()
Specified by:
getSecureSocketDelegate in class SSLSocketDelegate

connect

public void connect(java.net.SocketAddress remoteAddress,
                    int timeout)
             throws java.io.IOException
Overrides:
connect in class SSLSocketDelegate
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Overrides:
close in class SSLSocketDelegate
Throws:
java.io.IOException


Copyright © 2012 Atlassian. All Rights Reserved.