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.


Field Summary
 
Fields inherited from class com.atlassian.bamboo.agent.elastic.tunnel.http.SSLSocketDelegate
enabledCipherSuites, enabledProtocols, keepAlive, tcpNoDelay
 
Constructor Summary
SSLSocketDecorator(Socket socket, SSLContext sslContext)
           
 
Method Summary
 void close()
           
 void connect(SocketAddress endpoint, int timeout)
           
 String[] getEnabledProtocols()
           
protected  SSLSocket getSecureSocketDelegate()
           
protected  SSLSocketFactory getSslSocketFactory()
           
 String[] getSupportedProtocols()
           
 
Methods inherited from class com.atlassian.bamboo.agent.elastic.tunnel.http.SSLSocketDelegate
addHandshakeCompletedListener, bind, connect, getChannel, getEnabledCipherSuites, getEnableSessionCreation, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getNeedClientAuth, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSession, getSoLinger, getSoTimeout, getSSLParameters, getSupportedCipherSuites, 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(@NotNull
                          Socket socket,
                          @NotNull
                          SSLContext sslContext)
Method Detail

getSecureSocketDelegate

protected SSLSocket getSecureSocketDelegate()
Specified by:
getSecureSocketDelegate in class SSLSocketDelegate

getSslSocketFactory

protected SSLSocketFactory getSslSocketFactory()
Specified by:
getSslSocketFactory in class SSLSocketDelegate

getSupportedProtocols

public String[] getSupportedProtocols()
Specified by:
getSupportedProtocols in class SSLSocketDelegate

getEnabledProtocols

public String[] getEnabledProtocols()
Specified by:
getEnabledProtocols in class SSLSocketDelegate

connect

public void connect(SocketAddress endpoint,
                    int timeout)
             throws IOException
Overrides:
connect in class SSLSocketDelegate
Throws:
IOException

close

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


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.