Project JXTA

net.jxta.impl.endpoint.tls
Class TlsSocket

java.lang.Object
  extended by java.net.Socket
      extended by net.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
           
 
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, 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

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

Overrides:
close in class Socket
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

isBound

public boolean isBound()

Overrides:
isBound in class Socket

isConnected

public boolean isConnected()

Overrides:
isConnected in class Socket

getInetAddress

public InetAddress getInetAddress()

Overrides:
getInetAddress in class Socket

getLocalAddress

public InetAddress getLocalAddress()

Overrides:
getLocalAddress in class Socket

getRemoteSocketAddress

public SocketAddress getRemoteSocketAddress()

Overrides:
getRemoteSocketAddress in class Socket

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()

Overrides:
getLocalSocketAddress in class Socket

getChannel

public SocketChannel getChannel()

Overrides:
getChannel in class Socket

JXTA J2SE