org.logi.crypto.protocols
Interface InterProtocolServer

All Known Subinterfaces:
InterAuthServer, InterKeyExServer, NoninterKeyExServer, NoninterProtocolServer

public interface InterProtocolServer

This interface is implemented by classes for the server portion of an interactive protocol.

Author:
Logi Ragnarsson (logir@logi.org)
See Also:
InterProtocolClient

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

completed

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

message

public byte[] message(byte[] received)
               throws CryptoProtocolException
Get the next message in the protocol.

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

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

Throws:
CryptoProtocolException - if a problem arises with the protocol.

maxMessageSize

public int maxMessageSize()
Returns the maximum expected size of a message for this protocol.


Copyright (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL