|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
InterProtocolServer
Method Summary | |
boolean |
completed()
Returns true iff this end of the protocol is completed. |
int |
maxMessageSize()
Returns the maximum expected size of a message for this protocol. |
byte[] |
message(byte[] received)
Get the next message in the protocol. |
Method Detail |
public boolean completed()
public byte[] message(byte[] received) throws CryptoProtocolException
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.
CryptoProtocolException
- if a problem arises with the protocol.public int maxMessageSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |