gnu.crypto.tool

Class SaslConnection


public class SaslConnection
extends java.lang.Object

A sample client-side protocol driver.

Version:
$Revision: 1.3 $

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)

Constructor Details

SaslConnection

public SaslConnection(String m,
                      URL url)
            throws SaslException,
                   IOException

Method Details

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.

Returns:
an input stream that reads from this open connection.


getOutputStream

public OutputStream getOutputStream()
            throws IOException
Returns an output stream that writes to this connection.

Returns:
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.

Returns:
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.