|
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.Object gnu.crypto.tool.SaslConnection
A sample client-side protocol driver.
Constructor Summary | |
SaslConnection(java.lang.String m,
java.net.URL url)
|
Method Summary | |
void |
connect()
|
void |
disconnect()
Sets the connected field to false and instantiates a new underlying mechanism client object. |
java.io.InputStream |
getInputStream()
Returns an input stream that reads from this open connection. |
java.io.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(java.lang.String m, java.net.URL url) throws javax.security.sasl.SaslException, java.io.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 java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if an I/O error occurs while creating the input
stream.
java.lang.IllegalStateException
- if this method was invoked before the
connection was opened; ie. the authentication phase has not yet occured.public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
- if an I/O error occurs while creating the output
stream.
java.lang.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 java.io.IOException
java.io.IOException
public byte[] receive() throws java.io.IOException
java.io.IOException
public void disconnect() throws java.io.IOException
java.io.IOException
public void reconnect() throws java.io.IOException
java.io.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 |