Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.sasl.rmi
Class SaslSocket  view SaslSocket download SaslSocket.java

java.lang.Object
  extended byjava.net.Socket
      extended bycryptix.sasl.rmi.SaslSocket

public class SaslSocket
extends java.net.Socket

This class implements client sockets (also called just "sockets"). A socket is an endpoint for communication between two machines.

Version:
1.0

Field Summary
private static org.apache.log4j.Category cat
           
private  java.io.InputStream secureIn
           
private  java.io.OutputStream secureOut
           
 
Fields inherited from class java.net.Socket
 
Constructor Summary
SaslSocket()
          No-arguments constructor --for server-side.
SaslSocket(java.lang.String host, int port)
          Constructs a SaslSocket given a host and a port --for client-side.
 
Method Summary
 void close()
          Flushes the output stream before closing the socket.
 java.io.InputStream getInputStream()
          Returns this socket's input stream.
 java.io.OutputStream getOutputStream()
          Returns this socket's output stream.
 void setSecureInputStream(java.io.InputStream in)
           
 void setSecureOutputStream(java.io.OutputStream out)
           
 
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, 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

cat

private static org.apache.log4j.Category cat

secureIn

private java.io.InputStream secureIn

secureOut

private java.io.OutputStream secureOut
Constructor Detail

SaslSocket

public SaslSocket()
No-arguments constructor --for server-side.


SaslSocket

public SaslSocket(java.lang.String host,
                  int port)
           throws java.io.IOException
Constructs a SaslSocket given a host and a port --for client-side.

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns this socket's input stream.


getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns this socket's output stream.


close

public void close()
           throws java.io.IOException
Flushes the output stream before closing the socket.


setSecureInputStream

public void setSecureInputStream(java.io.InputStream in)

setSecureOutputStream

public void setSecureOutputStream(java.io.OutputStream out)