gnu.crypto.tool
public class SaslConnection extends Object
Version: $Revision: 1.5 $
Constructor Summary | |
---|---|
SaslConnection(String m, URL url) |
Method Summary | |
---|---|
void | connect() |
void | disconnect()
Sets the connected field to false and instantiates a new
underlying mechanism client object. |
InputStream | getInputStream()
Returns an input stream that reads from this open connection.
|
OutputStream | getOutputStream()
Returns an output stream that writes to this connection.
|
boolean | isConnected()
Returns true if the communications link with the end-point
has been established; false otherwise.
|
byte[] | receive() |
void | reconnect() |
void | send(byte[] message) |
Returns: an input stream that reads from this open connection.
Throws: IOException if an I/O error occurs while creating the input stream. IllegalStateException if this method was invoked before the connection was opened; ie. the authentication phase has not yet occured.
Returns: an output stream that writes to this connection.
Throws: IOException if an I/O error occurs while creating the output stream. IllegalStateException if this method was invoked before the connection was opened; ie. the authentication phase has not yet occured.
true
if the communications link with the end-point
has been established; false
otherwise.
Returns: true
or false
depending on wether the
communications link with the end-point has been established or not.