All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.protocols.SendHashKeyExServer

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.protocols.SendHashKeyEx
                   |
                   +----is.logi.crypto.protocols.SendHashKeyExServer

public class SendHashKeyExServer
extends SendHashKeyEx
implements NoninterKeyExServer
This class implements the server portion of the key-exchange protocol whereby the client sends the server the hash of the key that should be used for decryption. The server is assumed to have this key in its default KeySource.

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

Constructor Index

 o SendHashKeyExServer()
Create a new SendHashKeyExServer.

Method Index

 o message(byte[])
Get the next message in the protocol.

Constructors

 o SendHashKeyExServer
 public SendHashKeyExServer()
Create a new SendHashKeyExServer.

Methods

 o message
 public byte[] message(byte received[]) throws ProtocolException
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: ProtocolException
if a problem arises with the protocol.

All Packages  Class Hierarchy  This Package  Previous  Next  Index