|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.crypto.tool.SaslConnection
public class SaslConnection
A sample client-side protocol driver.
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SaslConnection(String m, URL url) throws SaslException, IOException
SaslException
IOException
Method Detail |
---|
public boolean isConnected()
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.public void connect() throws IOException
IOException
public InputStream getInputStream() throws IOException
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.public OutputStream getOutputStream() throws IOException
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.public void send(byte[] message) throws IOException
IOException
public byte[] receive() throws IOException
IOException
public void disconnect() throws IOException
IOException
public void reconnect() throws IOException
IOException
|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |