gnu.crypto.tool
Class SaslConnection
public class SaslConnection
A sample client-side protocol driver.
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)
|
SaslConnection
public SaslConnection(String m,
URL url)
throws SaslException,
IOException
connect
public void connect()
throws IOException
disconnect
public void disconnect()
throws IOException
Sets the connected field to false and instantiates a new
underlying mechanism client object.
getInputStream
public InputStream getInputStream()
throws IOException
Returns an input stream that reads from this open connection.
- an input stream that reads from this open connection.
getOutputStream
public OutputStream getOutputStream()
throws IOException
Returns an output stream that writes to this connection.
- an output stream that writes to this connection.
isConnected
public boolean isConnected()
Returns true
if the communications link with the end-point
has been established; false
otherwise.
true
or false
depending on wether the
communications link with the end-point has been established or not.
receive
public byte[] receive()
throws IOException
reconnect
public void reconnect()
throws IOException
send
public void send(byte[] message)
throws IOException
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.