All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface is.logi.crypto.protocols.InterProtocolClient

public interface InterProtocolClient
This interface is implemented by classes for the client portion of an interactive protocol.

In this context, the party which initiates the protocol is considered the client. Interactive means that the client may need to recieve information from the server, so the protocol can be used off-line.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
InterProtocolClient

Method Index

 o completed()
Returns true iff this end of the protocol is completed.
 o message(byte[])
Get the next message in the protocol.

Methods

 o completed
 public abstract boolean completed()
Returns true iff this end of the protocol is completed.

 o message
 public abstract byte[] message(byte received[]) throws ProtocolException
Get the next message in the protocol.

received is the last message received form the server and has not yet been sent to the client.

The returned value is the next message to send to the server or null if no more messages need to be sent and the protocol is terminated.

Throws: ProtocolException
if a problem arises with the protocol.

All Packages  Class Hierarchy  This Package  Previous  Next  Index