com.digt.trusted.jsse.provider
Class DigtSSLSocket

java.lang.Object
  extended by java.net.Socket
      extended by javax.net.ssl.SSLSocket
          extended by com.digt.trusted.jsse.provider.DigtSSLSocket

public final class DigtSSLSocket
extends javax.net.ssl.SSLSocket


Field Summary
protected  java.net.InetAddress remoteHost
           
protected  int remotePort
           
 
Constructor Summary
DigtSSLSocket(DigtSSLContext ctx, boolean bMode)
           
DigtSSLSocket(java.net.InetAddress address, int port, DigtSSLContext ctx)
           
DigtSSLSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort, DigtSSLContext ctx)
           
DigtSSLSocket(java.net.Socket sock, java.lang.String host, int port, boolean bAuto, DigtSSLContext ctx)
           
DigtSSLSocket(java.lang.String host, int port, DigtSSLContext ctx)
           
DigtSSLSocket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort, DigtSSLContext ctx)
           
DigtSSLSocket(java.lang.String host, int port, int localPort, DigtSSLContext ctx)
           
DigtSSLSocket(java.lang.String host, int port, java.lang.String localAddr, int localPort, DigtSSLContext ctx)
           
 
Method Summary
 void addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener handshakeCompletedListener)
           
 void close()
           
 java.lang.String[] getEnabledCipherSuites()
           
 java.lang.String[] getEnabledProtocols()
           
 boolean getEnableSessionCreation()
           
 java.io.InputStream getInputStream()
           
 boolean getNeedClientAuth()
           
 java.io.OutputStream getOutputStream()
           
 javax.net.ssl.SSLSession getSession()
           
 java.lang.String[] getSupportedCipherSuites()
           
 java.lang.String[] getSupportedProtocols()
           
 boolean getUseClientMode()
           
 boolean getWantClientAuth()
           
 void removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener handshakeCompletedListener)
           
 void setEnabledCipherSuites(java.lang.String[] strings)
           
 void setEnabledProtocols(java.lang.String[] strings)
           
 void setEnableSessionCreation(boolean b)
           
 void setNeedClientAuth(boolean b)
           
 void setUseClientMode(boolean b)
           
 void setWantClientAuth(boolean b)
           
 void startHandshake()
           
 
Methods inherited from class javax.net.ssl.SSLSocket
getSSLParameters, setSSLParameters
 
Methods inherited from class java.net.Socket
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, 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
 

Field Detail

remoteHost

protected java.net.InetAddress remoteHost

remotePort

protected int remotePort
Constructor Detail

DigtSSLSocket

public DigtSSLSocket(java.net.Socket sock,
                     java.lang.String host,
                     int port,
                     boolean bAuto,
                     DigtSSLContext ctx)
              throws java.io.IOException
Throws:
java.io.IOException

DigtSSLSocket

public DigtSSLSocket(DigtSSLContext ctx,
                     boolean bMode)
              throws java.io.IOException
Throws:
java.io.IOException

DigtSSLSocket

public DigtSSLSocket(java.net.InetAddress address,
                     int port,
                     DigtSSLContext ctx)
              throws java.io.IOException
Throws:
java.io.IOException

DigtSSLSocket

public DigtSSLSocket(java.lang.String host,
                     int port,
                     int localPort,
                     DigtSSLContext ctx)
              throws java.io.IOException
Throws:
java.io.IOException

DigtSSLSocket

public DigtSSLSocket(java.lang.String host,
                     int port,
                     java.lang.String localAddr,
                     int localPort,
                     DigtSSLContext ctx)
              throws java.io.IOException
Throws:
java.io.IOException

DigtSSLSocket

public DigtSSLSocket(java.lang.String host,
                     int port,
                     java.net.InetAddress localAddr,
                     int localPort,
                     DigtSSLContext ctx)
              throws java.io.IOException
Throws:
java.io.IOException

DigtSSLSocket

public DigtSSLSocket(java.lang.String host,
                     int port,
                     DigtSSLContext ctx)
              throws java.net.UnknownHostException,
                     java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException

DigtSSLSocket

public DigtSSLSocket(java.net.InetAddress address,
                     int port,
                     java.net.InetAddress localAddr,
                     int localPort,
                     DigtSSLContext ctx)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

startHandshake

public void startHandshake()
                    throws java.io.IOException
Specified by:
startHandshake in class javax.net.ssl.SSLSocket
Throws:
java.io.IOException

getEnableSessionCreation

public boolean getEnableSessionCreation()
Specified by:
getEnableSessionCreation in class javax.net.ssl.SSLSocket

getNeedClientAuth

public boolean getNeedClientAuth()
Specified by:
getNeedClientAuth 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

setEnableSessionCreation

public void setEnableSessionCreation(boolean b)
Specified by:
setEnableSessionCreation in class javax.net.ssl.SSLSocket

setNeedClientAuth

public void setNeedClientAuth(boolean b)
Specified by:
setNeedClientAuth in class javax.net.ssl.SSLSocket

setUseClientMode

public void setUseClientMode(boolean b)
Specified by:
setUseClientMode in class javax.net.ssl.SSLSocket

setWantClientAuth

public void setWantClientAuth(boolean b)
Specified by:
setWantClientAuth 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

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

setEnabledCipherSuites

public void setEnabledCipherSuites(java.lang.String[] strings)
Specified by:
setEnabledCipherSuites in class javax.net.ssl.SSLSocket

setEnabledProtocols

public void setEnabledProtocols(java.lang.String[] strings)
Specified by:
setEnabledProtocols in class javax.net.ssl.SSLSocket

addHandshakeCompletedListener

public void addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener handshakeCompletedListener)
Specified by:
addHandshakeCompletedListener in class javax.net.ssl.SSLSocket

removeHandshakeCompletedListener

public void removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener handshakeCompletedListener)
Specified by:
removeHandshakeCompletedListener in class javax.net.ssl.SSLSocket

getSession

public javax.net.ssl.SSLSession getSession()
Specified by:
getSession in class javax.net.ssl.SSLSocket

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

close

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