Project JXTA

net.jxta.impl.endpoint.tls
Class TlsSocket

java.lang.Object
  extended byjava.net.Socket
      extended bynet.jxta.impl.endpoint.tls.TlsSocket

public class TlsSocket
extends Socket

A "shim" socket which we provide to the TLS layer.


Field Summary
(package private)  boolean connected
           
(package private)  JTlsInputStream input
           
(package private)  JTlsOutputStream output
           
 
Fields inherited from class java.net.Socket
 
Constructor Summary
TlsSocket(JTlsInputStream useInput, JTlsOutputStream useOutput)
          Creates a new instance of TlsSocket
 
Method Summary
 void close()
          
 SocketChannel getChannel()
          
 InetAddress getInetAddress()
          
 InputStream getInputStream()
          
 InetAddress getLocalAddress()
          
 SocketAddress getLocalSocketAddress()
          
 OutputStream getOutputStream()
          
 SocketAddress getRemoteSocketAddress()
          
 boolean isBound()
          
 boolean isConnected()
          
 
Methods inherited from class java.net.Socket
bind, connect, connect, getKeepAlive, getLocalPort, getOOBInline, getPort, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, 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

input

final JTlsInputStream input

output

final JTlsOutputStream output

connected

boolean connected
Constructor Detail

TlsSocket

public TlsSocket(JTlsInputStream useInput,
                 JTlsOutputStream useOutput)
Creates a new instance of TlsSocket

Method Detail

close

public void close()
           throws IOException

Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException

Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException

Throws:
IOException

isBound

public boolean isBound()


isConnected

public boolean isConnected()


getInetAddress

public InetAddress getInetAddress()


getLocalAddress

public InetAddress getLocalAddress()


getRemoteSocketAddress

public SocketAddress getRemoteSocketAddress()


getLocalSocketAddress

public SocketAddress getLocalSocketAddress()


getChannel

public SocketChannel getChannel()


JXTA J2SE