All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.protocols.EncryptedKeyExServer

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.protocols.EncryptedKeyEx
                   |
                   +----is.logi.crypto.protocols.EncryptedKeyExServer

public class EncryptedKeyExServer
extends EncryptedKeyEx
implements NoninterKeyExServer
Receive an encrypted key from the correstponding EncryptedKeyExClient

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

Constructor Index

 o EncryptedKeyExServer(CipherKey)
Creates a new EncryptedKeyExchangeServer object.

Method Index

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

Constructors

 o EncryptedKeyExServer
 public EncryptedKeyExServer(CipherKey key)
Creates a new EncryptedKeyExchangeServer object. It uses key to decrypt the session key sent to it by te client.

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